Use new connection for every test case

pull/19355/head
Muxi Yan 6 years ago
parent 0bee8c41f9
commit 0719ebd2ed
  1. 5
      src/objective-c/tests/InteropTests/InteropTests.m
  2. 5
      src/objective-c/tests/MacTests/StressTests.m

@ -364,6 +364,11 @@ initWithInterceptorManager:(GRPCInterceptorManager *)interceptorManager
[GRPCCall resetHostSettings];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
[GRPCCall closeOpenConnections];
#pragma clang diagnostic pop
_service = [[self class] host] ? [RMTTestService serviceWithHost:[[self class] host]] : nil;
}

@ -118,6 +118,11 @@ extern const char *kCFStreamVarName;
[GRPCCall resetHostSettings];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
[GRPCCall closeOpenConnections];
#pragma clang diagnostic pop
GRPCMutableCallOptions *options = [[GRPCMutableCallOptions alloc] init];
options.transportType = [[self class] transportType];
options.PEMRootCertificates = [[self class] PEMRootCertificates];

Loading…
Cancel
Save