Skip to content

Commit 869745c

Browse files
Undo TEST_PROJECT import since it breaks integration tests
1 parent b9ef49b commit 869745c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/firestore/test/integration/api/validation.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import {
2727
withTestDb
2828
} from '../util/helpers';
2929
import { ALT_PROJECT_ID, DEFAULT_PROJECT_ID } from '../util/settings';
30-
import { TEST_PROJECT } from '../../unit/local/persistence_test_helpers';
3130

3231
const FieldPath = firebaseExport.FieldPath;
3332
const FieldValue = firebaseExport.FieldValue;
@@ -168,14 +167,14 @@ apiDescribe('Validation:', (persistence: boolean) => {
168167
});
169168

170169
validationIt(persistence, 'enforces minimum cache size', () => {
171-
const db = newTestFirestore(TEST_PROJECT);
170+
const db = newTestFirestore('test-project');
172171
expect(() => db.settings({ cacheSizeBytes: 1 })).to.throw(
173172
'cacheSizeBytes must be at least 1048576'
174173
);
175174
});
176175

177176
validationIt(persistence, 'garbage collection can be disabled', () => {
178-
const db = newTestFirestore(TEST_PROJECT);
177+
const db = newTestFirestore('test-project');
179178
// Verify that this doesn't throw.
180179
db.settings({ cacheSizeBytes: /* CACHE_SIZE_UNLIMITED= */ -1 });
181180
});

0 commit comments

Comments
 (0)