Created
June 22, 2015 22:19
-
-
Save jzucker2/831a5817645820ffe982 to your computer and use it in GitHub Desktop.
Example of batched subscribe issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
self.subscribeExpectation = [self expectationWithDescription:@"network"]; | |
[self.client subscribeToChannels:@[@"a", @"b"] withPresence:YES]; | |
[self.client subscribeToChannels:@[@"c"] withPresence:NO]; | |
[self waitForExpectationsWithTimeout:10 handler:^(NSError *error) { | |
if (error) { | |
NSLog(@"error: %@", error); | |
XCTFail(@"what went wrong?"); | |
} | |
}]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment