Skip to content

Commit c039ae2

Browse files
committed
Wait for writes in QuerySnapshot multiple events
1 parent 740b723 commit c039ae2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1374,6 +1374,7 @@ apiDescribe('Database', persistence => {
13741374
}
13751375
});
13761376
await setDoc(querySnap.docs[0].ref, { foo: true });
1377+
await waitForPendingWrites(db);
13771378
await setDoc(querySnap.docs[1].ref, { bar: true });
13781379
await updateFound.promise;
13791380
expect(count).to.equal(2);

0 commit comments

Comments
 (0)