diff --git a/Firestore/Example/Tests/Integration/API/FIRServerTimestampTests.mm b/Firestore/Example/Tests/Integration/API/FIRServerTimestampTests.mm index 860c8aac9ee..ba5fa55a2db 100644 --- a/Firestore/Example/Tests/Integration/API/FIRServerTimestampTests.mm +++ b/Firestore/Example/Tests/Integration/API/FIRServerTimestampTests.mm @@ -220,7 +220,8 @@ - (void)testServerTimestampsWithConsecutiveUpdates { serverTimestampBehavior:FIRServerTimestampBehaviorPrevious], @42); - [_docRef updateData:@{@"a" : [FIRFieldValue fieldValueForServerTimestamp]}]; + // include b=1 to ensure there's a change resulting in a new snapshot. + [_docRef updateData:@{@"a" : [FIRFieldValue fieldValueForServerTimestamp], @"b" : @1}]; localSnapshot = [_accumulator awaitLocalEvent]; XCTAssertEqualObjects([localSnapshot valueForField:@"a" serverTimestampBehavior:FIRServerTimestampBehaviorPrevious],