From d7d46ed1e16d403f8dda068bbe83d3848e527f85 Mon Sep 17 00:00:00 2001 From: Muxi Yan Date: Fri, 28 Feb 2020 14:56:11 -0800 Subject: [PATCH] Have more verbose test failure information --- src/objective-c/tests/UnitTests/APIv2Tests.m | 3 +++ 1 file changed, 3 insertions(+) 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]; }]