Skip to content
Snippets Groups Projects
Commit c478c13c authored by Michael Lumish's avatar Michael Lumish
Browse files

Merge pull request #2469 from jcanizales/remove-flakes

Increase timeout of tests to remove flakes.
parents ccd89f08 5580e5d2
No related branches found
No related tags found
No related merge requests found
...@@ -87,7 +87,7 @@ static ProtoMethod *kUnaryCallMethod; ...@@ -87,7 +87,7 @@ static ProtoMethod *kUnaryCallMethod;
[call startWithWriteable:responsesWriteable]; [call startWithWriteable:responsesWriteable];
[self waitForExpectationsWithTimeout:2. handler:nil]; [self waitForExpectationsWithTimeout:4 handler:nil];
} }
- (void)testEmptyRPC { - (void)testEmptyRPC {
...@@ -109,7 +109,7 @@ static ProtoMethod *kUnaryCallMethod; ...@@ -109,7 +109,7 @@ static ProtoMethod *kUnaryCallMethod;
[call startWithWriteable:responsesWriteable]; [call startWithWriteable:responsesWriteable];
[self waitForExpectationsWithTimeout:2. handler:nil]; [self waitForExpectationsWithTimeout:4 handler:nil];
} }
- (void)testSimpleProtoRPC { - (void)testSimpleProtoRPC {
...@@ -141,7 +141,7 @@ static ProtoMethod *kUnaryCallMethod; ...@@ -141,7 +141,7 @@ static ProtoMethod *kUnaryCallMethod;
[call startWithWriteable:responsesWriteable]; [call startWithWriteable:responsesWriteable];
[self waitForExpectationsWithTimeout:2. handler:nil]; [self waitForExpectationsWithTimeout:4 handler:nil];
} }
- (void)testMetadata { - (void)testMetadata {
...@@ -173,7 +173,7 @@ static ProtoMethod *kUnaryCallMethod; ...@@ -173,7 +173,7 @@ static ProtoMethod *kUnaryCallMethod;
[call startWithWriteable:responsesWriteable]; [call startWithWriteable:responsesWriteable];
[self waitForExpectationsWithTimeout:2. handler:nil]; [self waitForExpectationsWithTimeout:4 handler:nil];
} }
@end @end
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
[expectation fulfill]; [expectation fulfill];
}]; }];
[self waitForExpectationsWithTimeout:2 handler:nil]; [self waitForExpectationsWithTimeout:4 handler:nil];
} }
- (void)testLargeUnaryRPC { - (void)testLargeUnaryRPC {
...@@ -125,7 +125,7 @@ ...@@ -125,7 +125,7 @@
[expectation fulfill]; [expectation fulfill];
}]; }];
[self waitForExpectationsWithTimeout:4 handler:nil]; [self waitForExpectationsWithTimeout:8 handler:nil];
} }
- (void)testClientStreamingRPC { - (void)testClientStreamingRPC {
...@@ -157,7 +157,7 @@ ...@@ -157,7 +157,7 @@
[expectation fulfill]; [expectation fulfill];
}]; }];
[self waitForExpectationsWithTimeout:4 handler:nil]; [self waitForExpectationsWithTimeout:8 handler:nil];
} }
- (void)testServerStreamingRPC { - (void)testServerStreamingRPC {
...@@ -193,7 +193,7 @@ ...@@ -193,7 +193,7 @@
} }
}]; }];
[self waitForExpectationsWithTimeout:4 handler:nil]; [self waitForExpectationsWithTimeout:8 handler:nil];
} }
- (void)testPingPongRPC { - (void)testPingPongRPC {
...@@ -236,7 +236,7 @@ ...@@ -236,7 +236,7 @@
[expectation fulfill]; [expectation fulfill];
} }
}]; }];
[self waitForExpectationsWithTimeout:2 handler:nil]; [self waitForExpectationsWithTimeout:4 handler:nil];
} }
- (void)testEmptyStreamRPC { - (void)testEmptyStreamRPC {
...@@ -282,10 +282,11 @@ ...@@ -282,10 +282,11 @@
[requestsBuffer writeValue:request]; [requestsBuffer writeValue:request];
__block ProtoRPC *call = [_service RPCToFullDuplexCallWithRequestsWriter:requestsBuffer __block ProtoRPC *call =
eventHandler:^(BOOL done, [_service RPCToFullDuplexCallWithRequestsWriter:requestsBuffer
RMTStreamingOutputCallResponse *response, eventHandler:^(BOOL done,
NSError *error) { RMTStreamingOutputCallResponse *response,
NSError *error) {
if (receivedResponse) { if (receivedResponse) {
XCTAssert(done, @"Unexpected extra response %@", response); XCTAssert(done, @"Unexpected extra response %@", response);
XCTAssertEqual(error.code, GRPC_STATUS_CANCELLED); XCTAssertEqual(error.code, GRPC_STATUS_CANCELLED);
...@@ -299,7 +300,7 @@ ...@@ -299,7 +300,7 @@
} }
}]; }];
[call start]; [call start];
[self waitForExpectationsWithTimeout:4 handler:nil]; [self waitForExpectationsWithTimeout:8 handler:nil];
} }
@end @end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment