pull/16190/head
Muxi Yan 6 years ago
parent 8bc8ff3dce
commit d79b3fe320
  1. 2
      src/objective-c/tests/GRPCClientTests.m

@ -365,7 +365,7 @@ static GRPCProtoMethod *kFullDuplexCallMethod;
GRXWriter *writer = [GRXWriter writerWithValue:[NSData data]]; GRXWriter *writer = [GRXWriter writerWithValue:[NSData data]];
// Try to set parameters to nil for GRPCCall. This should cause an exception // Try to set parameters to nil for GRPCCall. This should cause an exception
@try { @try {
(void)[[GRPCCall alloc] initWithHost:@"" path:@"" requestsWriter:writer]; (void)[[GRPCCall alloc] initWithHost:nil path:nil requestsWriter:writer];
XCTFail(@"Did not receive an exception when parameters are nil"); XCTFail(@"Did not receive an exception when parameters are nil");
} @catch (NSException *theException) { } @catch (NSException *theException) {
NSLog(@"Received exception as expected: %@", theException.name); NSLog(@"Received exception as expected: %@", theException.name);

Loading…
Cancel
Save