Skip to content

Commit 05dd0d6

Browse files
committed
fix retry logic
1 parent e43ebce commit 05dd0d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2186,13 +2186,13 @@ apiDescribe('Queries', (persistence: boolean) => {
21862186
expect(bloomFilter.padding, 'bloomFilterPadding').to.be.below(8);
21872187

21882188
// Verify that the bloom filter was successfully used to avert a full
2189-
// request. If a false positive occurred then retry the entire test.
2189+
// requery. If a false positive occurred then retry the entire test.
21902190
// Although statistically rare, false positives are expected to happen
21912191
// occasionally. When a false positive _does_ happen, just retry the test
21922192
// with a different set of documents. If that retry _also_ experiences a
21932193
// false positive, then fail the test because that is so improbable that
21942194
// something must have gone wrong.
2195-
if (attemptNumber > 1 && !bloomFilter.applied) {
2195+
if (attemptNumber === 1 && !bloomFilter.applied) {
21962196
return 'retry';
21972197
}
21982198
expect(

0 commit comments

Comments
 (0)