diff --git a/src/objective-c/tests/UnitTests/APIv2Tests.m b/src/objective-c/tests/UnitTests/APIv2Tests.m index 86d4e8b3619..96c40d311df 100644 --- a/src/objective-c/tests/UnitTests/APIv2Tests.m +++ b/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]; }]