Skip to content

Commit e520b78

Browse files
author
Brian Chen
authored
Fix flaky integration test (#3470)
1 parent 2acc073 commit e520b78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Firestore/Example/Tests/Integration/FSTTransactionTests.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ - (void)testUpdateTransactionally {
491491

492492
[self awaitExpectations];
493493
// There should be a maximum of 3 retries: once for the 2nd update, and twice for the 3rd update.
494-
XCTAssertLessThanOrEqual(6, (int)counter);
494+
XCTAssertLessThanOrEqual((int)counter, 6);
495495
// Now all transaction should be completed, so check the result.
496496
FIRDocumentSnapshot *snapshot = [self readDocumentForRef:doc];
497497
XCTAssertEqualObjects(@(5.0 + total), snapshot[@"count"]);

0 commit comments

Comments
 (0)