Skip to content

Commit 5fba1e7

Browse files
authored
Firestore: Increase clock skew tolerance in FIRServerTimestampTests.mm (#12190)
1 parent 97fb5c2 commit 5fba1e7

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Firestore/Example/Tests/Integration/API/FIRServerTimestampTests.mm

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,8 @@ - (void)verifyTimestampsInSnapshot:(FIRDocumentSnapshot *)snapshot
123123

124124
/** Verifies a snapshot containing _setData but with resolved server timestamps. */
125125
- (void)verifySnapshotWithResolvedTimestamps:(FIRDocumentSnapshot *)snapshot {
126-
// Tolerate up to 10 seconds of clock skew between client and server.
127-
NSInteger tolerance = 10;
128-
129-
// Somehow the skew is much worse in nightly
130-
if ([self.db.settings.host isEqualToString:@"test-firestore.sandbox.googleapis.com"]) {
131-
tolerance = 200;
132-
}
126+
// Tolerate up to 200 seconds of clock skew between client and server.
127+
NSInteger tolerance = 200;
133128

134129
XCTAssertTrue(snapshot.exists);
135130
FIRTimestamp *when = snapshot[@"when"];

0 commit comments

Comments
 (0)