Skip to content

Commit

Permalink
Remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardopereira committed Jan 25, 2017
1 parent 2c048ff commit 5f047e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tests/ARTRealtimeRecoverTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ - (void)testRecoverDisconnected {
__weak XCTestExpectation *expectation = [self expectationWithDescription:[NSString stringWithFormat:@"%s", __FUNCTION__]];
ARTRealtime *realtime = [[ARTRealtime alloc] initWithOptions:options];
__block NSString *firstConnectionId = nil;
[realtime.connection once:ARTRealtimeConnected callback:^(ARTConnectionStateChange *stateChange) {
[realtime.connection once:ARTRealtimeConnectionEventConnected callback:^(ARTConnectionStateChange *stateChange) {
firstConnectionId = realtime.connection.id;
ARTRealtimeChannel *channel = [realtime.channels get:channelName];
// Sending a message
Expand All @@ -48,7 +48,7 @@ - (void)testRecoverDisconnected {
[self waitForExpectationsWithTimeout:[ARTTestUtil timeout] handler:nil];

__weak XCTestExpectation *expectation2 = [self expectationWithDescription:[NSString stringWithFormat:@"%s-2", __FUNCTION__]];
[realtime.connection once:ARTRealtimeDisconnected callback:^(ARTConnectionStateChange *stateChange) {
[realtime.connection once:ARTRealtimeConnectionEventDisconnected callback:^(ARTConnectionStateChange *stateChange) {
options.recover = nil;
ARTRealtime *realtimeNonRecovered = [[ARTRealtime alloc] initWithOptions:options];
ARTRealtimeChannel *c2 = [realtimeNonRecovered.channels get:channelName];
Expand All @@ -71,7 +71,7 @@ - (void)testRecoverDisconnected {
XCTAssertEqualObjects(c2Message, [message data]);
[expectation3 fulfill];
}];
[realtimeRecovered.connection once:ARTRealtimeConnected callback:^(ARTConnectionStateChange *stateChange) {
[realtimeRecovered.connection once:ARTRealtimeConnectionEventConnected callback:^(ARTConnectionStateChange *stateChange) {
XCTAssertEqualObjects(realtimeRecovered.connection.id, firstConnectionId);
}];
[self waitForExpectationsWithTimeout:[ARTTestUtil timeout] handler:nil];
Expand Down

0 comments on commit 5f047e6

Please sign in to comment.