pull/19322/head
Muxi Yan 6 years ago
parent 93c8088b33
commit 94a18020eb
  1. 6
      src/objective-c/GRPCClient/GRPCCall.m
  2. 2
      src/objective-c/tests/InteropTests/InteropTests.m

@ -161,12 +161,12 @@ const char *kCFStreamVarName = "grpc_cfstream";
NSLog(@"Failed to create interceptor from factory: %@", globalInterceptorFactory);
} else {
[internalCall setResponseHandler:interceptor];
nextInterceptor = interceptor;
nextManager = manager;
}
nextInterceptor = interceptor;
nextManager = manager;
}
// Finanlly initialize the interceptors in the chain
// Finally initialize the interceptors in the chain
NSArray *interceptorFactories = _actualCallOptions.interceptorFactories;
if (interceptorFactories.count == 0) {
if (nextManager == nil) {

@ -1521,7 +1521,7 @@ initWithInterceptorManager:(GRPCInterceptorManager *)interceptorManager
- (void)testGlobalInterceptor {
XCTAssertNotNil([[self class] host]);
__weak XCTestExpectation *expectation =
[self expectationWithDescription:@"testLoggingInterceptor"];
[self expectationWithDescription:@"testGlobalInterceptor"];
__block NSUInteger startCount = 0;
__block NSUInteger writeDataCount = 0;

Loading…
Cancel
Save