aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/tests
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2018-12-07 16:01:23 -0800
committerGravatar Muxi Yan <mxyan@google.com>2018-12-07 16:01:23 -0800
commitdf21aab3a6af360cff29a5164f9728ba646d35ab (patch)
tree31b4ad23e2fbcf7964ea4036cc87e440d7990492 /src/objective-c/tests
parent92db5fc72488f9d62b81ee311a79832df787f3ef (diff)
nullability annotation
Diffstat (limited to 'src/objective-c/tests')
-rw-r--r--src/objective-c/tests/GRPCClientTests.m3
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);