Skip to content

Commit 6f9d7b1

Browse files
authored
Firestore: lite/integration.test.ts: use unique collection names (#7235)
1 parent 98abcd5 commit 6f9d7b1

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

packages/firestore/test/lite/integration.test.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -688,8 +688,7 @@ function genericMutationTests(
688688
});
689689

690690
it('supports partials with merge', async () => {
691-
return withTestDb(async db => {
692-
const coll = collection(db, 'posts');
691+
return withTestCollection(async coll => {
693692
const ref = doc(coll, 'post').withConverter(postConverterMerge);
694693
await setDoc(ref, new Post('walnut', 'author'));
695694
await setDoc(
@@ -704,8 +703,7 @@ function genericMutationTests(
704703
});
705704

706705
it('supports partials with mergeFields', async () => {
707-
return withTestDb(async db => {
708-
const coll = collection(db, 'posts');
706+
return withTestCollection(async coll => {
709707
const ref = doc(coll, 'post').withConverter(postConverterMerge);
710708
await setDoc(ref, new Post('walnut', 'author'));
711709
await setDoc(ref, { title: 'olive' }, { mergeFields: ['title'] });
@@ -1359,8 +1357,7 @@ describe('withConverter() support', () => {
13591357
}
13601358
};
13611359

1362-
return withTestDb(async db => {
1363-
const coll = collection(db, 'tests');
1360+
return withTestCollection(async coll => {
13641361
const ref = doc(coll, 'number').withConverter(primitiveConverter);
13651362
await setDoc(ref, 3);
13661363
const result = await getDoc(ref);

0 commit comments

Comments
 (0)