diff --git a/src/objective-c/tests/InteropTests.m b/src/objective-c/tests/InteropTests.m index d0f14d0fe2c..0ab16cc11bf 100644 --- a/src/objective-c/tests/InteropTests.m +++ b/src/objective-c/tests/InteropTests.m @@ -347,7 +347,10 @@ static cronet_engine *cronetEngine = NULL; [_service emptyCallWithRequest:request handler:^(RMTEmpty *response, NSError *error) { XCTAssertNil(error, @"First RPC finished with unexpected error: %@", error); +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" [GRPCCall closeOpenConnections]; +#pragma clang diagnostic pop [_service emptyCallWithRequest:request handler:^(RMTEmpty *response, NSError *error) { XCTAssertNil(error, @"Second RPC finished with unexpected error: %@", error);