diff options
Diffstat (limited to 'Example')
-rw-r--r-- | Example/Messaging/Tests/FIRMessagingServiceTest.m | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Example/Messaging/Tests/FIRMessagingServiceTest.m b/Example/Messaging/Tests/FIRMessagingServiceTest.m index 9afdced..073adad 100644 --- a/Example/Messaging/Tests/FIRMessagingServiceTest.m +++ b/Example/Messaging/Tests/FIRMessagingServiceTest.m @@ -146,12 +146,15 @@ XCTestExpectation *exceptionExpectation = [self expectationWithDescription:@"Should throw exception for invalid token"]; @try { +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnonnull" [messaging.pubsub subscribeWithToken:@"abcdef1234" topic:nil options:nil handler:^(NSError *error) { XCTFail(@"Should not invoke the handler"); }]; +#pragma clang diagnostic pop } @catch (NSException *exception) { [exceptionExpectation fulfill]; @@ -169,12 +172,15 @@ XCTestExpectation *exceptionExpectation = [self expectationWithDescription:@"Should throw exception for invalid token"]; @try { +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnonnull" [messaging.pubsub unsubscribeWithToken:@"abcdef1234" topic:nil options:nil handler:^(NSError *error) { XCTFail(@"Should not invoke the handler"); }]; +#pragma clang diagnostic pop } @catch (NSException *exception) { [exceptionExpectation fulfill]; |