Skip to content
Snippets Groups Projects
Commit 54fa62e3 authored by Jorge Canizales's avatar Jorge Canizales
Browse files

Reject nils in useTestCertsPath:testName:forHost:

parent ea4955e2
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,9 @@
+ (void)useTestCertsPath:(NSString *)certsPath
testName:(NSString *)testName
forHost:(NSString *)host {
if (!host || !certsPath || !testName) {
[NSException raise:NSInvalidArgumentException format:@"host, path and name must be provided."];
}
GRPCHost *hostConfig = [GRPCHost hostWithAddress:host];
hostConfig.pathToCertificates = certsPath;
hostConfig.hostNameOverride = testName;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment