diff options
author | Michael Lehenbauer <mikelehen@gmail.com> | 2018-03-21 14:59:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-21 14:59:49 -0700 |
commit | 5f49b2f3f9866e4db13d09857eb3b548239cc62e (patch) | |
tree | f1490f36966b49b73c4fe2e9373b86809db383ec /Firestore/Example/Tests/SpecTests/FSTSpecTests.mm | |
parent | 7854c5164b4440201514b5ab0d90554dd94e9455 (diff) |
Fix for b/74749605: Cancel pending backoff operations when closing streams. (#958)
Diffstat (limited to 'Firestore/Example/Tests/SpecTests/FSTSpecTests.mm')
-rw-r--r-- | Firestore/Example/Tests/SpecTests/FSTSpecTests.mm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Firestore/Example/Tests/SpecTests/FSTSpecTests.mm b/Firestore/Example/Tests/SpecTests/FSTSpecTests.mm index 1e16250..0c3d9a1 100644 --- a/Firestore/Example/Tests/SpecTests/FSTSpecTests.mm +++ b/Firestore/Example/Tests/SpecTests/FSTSpecTests.mm @@ -296,6 +296,11 @@ static NSString *const kNoIOSTag = @"no-ios"; - (void)doWatchStreamClose:(NSDictionary *)closeSpec { NSDictionary *errorSpec = closeSpec[@"error"]; int code = ((NSNumber *)(errorSpec[@"code"])).intValue; + + NSNumber *runBackoffTimer = closeSpec[@"runBackoffTimer"]; + // TODO(b/72313632): Incorporate backoff in iOS Spec Tests. + FSTAssert(runBackoffTimer.boolValue, @"iOS Spec Tests don't support backoff."); + [self.driver receiveWatchStreamError:code userInfo:errorSpec]; } |