Skip to content

Commit 53703fd

Browse files
committed
resolve comments
1 parent 5f40f69 commit 53703fd

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

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

+3-5
Original file line numberDiff line numberDiff line change
@@ -1618,7 +1618,7 @@ apiDescribe('Queries', (persistence: boolean) => {
16181618

16191619
// eslint-disable-next-line no-restricted-properties
16201620
(persistence ? it.skip : it)(
1621-
'can raise expected snapshot when resume query after deleting docs',
1621+
'resuming a query should remove deleted documents indicated by existence filter',
16221622
() => {
16231623
const testDocs = {};
16241624
for (let i = 1; i <= 100; i++) {
@@ -1633,11 +1633,9 @@ apiDescribe('Queries', (persistence: boolean) => {
16331633
txn.delete(doc(coll, 'doc' + i));
16341634
}
16351635
});
1636-
// Wait 10 seconds, during which the watch will stop tracking the query
1636+
// Wait 10 seconds, during which Watch will stop tracking the query
16371637
// and will send an existence filter rather than "delete" events.
1638-
await (function () {
1639-
return new Promise(resolve => setTimeout(resolve, 10000));
1640-
})();
1638+
await new Promise(resolve => setTimeout(resolve, 10000));
16411639
const snapshot2 = await getDocs(coll);
16421640
expect(snapshot2.size).to.equal(50);
16431641
});

0 commit comments

Comments
 (0)