aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Example/Tests/Integration/API/FIRWriteBatchTests.m
diff options
context:
space:
mode:
Diffstat (limited to 'Firestore/Example/Tests/Integration/API/FIRWriteBatchTests.m')
-rw-r--r--Firestore/Example/Tests/Integration/API/FIRWriteBatchTests.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/Firestore/Example/Tests/Integration/API/FIRWriteBatchTests.m b/Firestore/Example/Tests/Integration/API/FIRWriteBatchTests.m
index 8ac5491..5e7f6d7 100644
--- a/Firestore/Example/Tests/Integration/API/FIRWriteBatchTests.m
+++ b/Firestore/Example/Tests/Integration/API/FIRWriteBatchTests.m
@@ -47,6 +47,12 @@
FIRWriteBatch *batch2 = [doc.firestore batch];
[batch2 setData:@{@"cc" : @"dd"} forDocument:doc];
[batch2 commit];
+
+ // 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];
+
FIRDocumentSnapshot *snapshot2 = [self readDocumentForRef:doc];
XCTAssertTrue(snapshot2.exists);
XCTAssertEqualObjects(snapshot2.data, @{@"cc" : @"dd"});