diff options
author | Muxi Yan <mxyan@google.com> | 2018-12-07 16:01:23 -0800 |
---|---|---|
committer | Muxi Yan <mxyan@google.com> | 2018-12-07 16:01:23 -0800 |
commit | df21aab3a6af360cff29a5164f9728ba646d35ab (patch) | |
tree | 31b4ad23e2fbcf7964ea4036cc87e440d7990492 /src/objective-c/tests | |
parent | 92db5fc72488f9d62b81ee311a79832df787f3ef (diff) |
nullability annotation
Diffstat (limited to 'src/objective-c/tests')
-rw-r--r-- | src/objective-c/tests/GRPCClientTests.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/objective-c/tests/GRPCClientTests.m b/src/objective-c/tests/GRPCClientTests.m index 2cfdd1a003..b16720557f 100644 --- a/src/objective-c/tests/GRPCClientTests.m +++ b/src/objective-c/tests/GRPCClientTests.m @@ -362,9 +362,10 @@ static GRPCProtoMethod *kFullDuplexCallMethod; // TODO(makarandd): Move to a different file that contains only unit tests - (void)testExceptions { + GRXWriter *writer = [GRXWriter writerWithValue:[NSData data]]; // Try to set parameters to nil for GRPCCall. This should cause an exception @try { - (void)[[GRPCCall alloc] initWithHost:nil path:nil requestsWriter:nil]; + (void)[[GRPCCall alloc] initWithHost:@"" path:@"" requestsWriter:writer]; XCTFail(@"Did not receive an exception when parameters are nil"); } @catch (NSException *theException) { NSLog(@"Received exception as expected: %@", theException.name); |