Have more verbose test failure information

pull/22189/head
Muxi Yan 5 years ago
parent 5e98ad4077
commit d7d46ed1e1
  1. 3
      src/objective-c/tests/UnitTests/APIv2Tests.m

@ -409,6 +409,9 @@ static const NSTimeInterval kInvertedTimeout = 2;
XCTAssertNotNil(error,
@"Failure: no error received; Expect: receive "
@"deadline exceeded.");
if (error.code != GRPCErrorCodeDeadlineExceeded) {
NSLog(@"Unexpected error: %@", error);
}
XCTAssertEqual(error.code, GRPCErrorCodeDeadlineExceeded);
[completion fulfill];
}]

Loading…
Cancel
Save