More test fix

pull/16190/head
Muxi Yan 6 years ago
parent 6cf4622cd1
commit 291b4f363b
  1. 2
      src/objective-c/GRPCClient/GRPCCall.m
  2. 1
      src/objective-c/tests/run_tests.sh

@ -69,7 +69,7 @@ const char *kCFStreamVarName = "grpc_cfstream";
@implementation GRPCRequestOptions @implementation GRPCRequestOptions
- (instancetype)initWithHost:(NSString *)host path:(NSString *)path safety:(GRPCCallSafety)safety { - (instancetype)initWithHost:(NSString *)host path:(NSString *)path safety:(GRPCCallSafety)safety {
NSAssert(host.length != 0 && path.length != 0, @"Host and Path cannot be empty"); NSAssert(host.length != 0 && path.length != 0, @"host and path cannot be empty");
if (host.length == 0 || path.length == 0) { if (host.length == 0 || path.length == 0) {
return nil; return nil;
} }

@ -189,6 +189,7 @@ xcodebuild \
-scheme APIv2Tests \ -scheme APIv2Tests \
-destination name="iPhone 8" \ -destination name="iPhone 8" \
HOST_PORT_LOCAL=localhost:5050 \ HOST_PORT_LOCAL=localhost:5050 \
HOST_PORT_REMOTE=grpc-test.sandbox.googleapis.com \
test \ test \
| egrep -v "$XCODEBUILD_FILTER" \ | egrep -v "$XCODEBUILD_FILTER" \
| egrep -v '^$' \ | egrep -v '^$' \

Loading…
Cancel
Save