diff --git a/Firestore/Example/Tests/Integration/API/FIRQueryTests.mm b/Firestore/Example/Tests/Integration/API/FIRQueryTests.mm index 47786567e76..83127b550b5 100644 --- a/Firestore/Example/Tests/Integration/API/FIRQueryTests.mm +++ b/Firestore/Example/Tests/Integration/API/FIRQueryTests.mm @@ -257,11 +257,6 @@ - (void)testQueriesFireFromCacheWhenOffline { querySnap = [self.eventAccumulator awaitEventWithName:@"offline event with isFromCache=YES"]; XCTAssertEqual(querySnap.metadata.isFromCache, YES); - // TODO(b/70631617): There's currently a backend bug that prevents us from using a resume token - // right away (against hexa at least). So we sleep. :-( :-( Anything over ~10ms seems to be - // sufficient. - [NSThread sleepForTimeInterval:0.2f]; - [self enableNetwork]; querySnap = [self.eventAccumulator awaitEventWithName:@"back online event with isFromCache=NO"]; XCTAssertEqual(querySnap.metadata.isFromCache, NO);