diff options
author | 2016-10-13 14:33:08 -0700 | |
---|---|---|
committer | 2016-10-13 14:33:08 -0700 | |
commit | be4fcc47c556104122674ff6272626e8843cbc71 (patch) | |
tree | deaef9bc198a6083686f0e1e260991d3ab69da40 | |
parent | 58628ae7a70feff295fc7f44de60686439a2beca (diff) |
Fix InteropTests.m bug
-rw-r--r-- | src/objective-c/tests/InteropTests.m | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/objective-c/tests/InteropTests.m b/src/objective-c/tests/InteropTests.m index 44f22c9e85..9804734d6a 100644 --- a/src/objective-c/tests/InteropTests.m +++ b/src/objective-c/tests/InteropTests.m @@ -92,20 +92,21 @@ return 0; } ++ (void)setUp { +#ifdef GRPC_COMPILE_WITH_CRONET + // Cronet setup + [Cronet setHttp2Enabled:YES]; + [Cronet start]; + [GRPCCall useCronetWithEngine:[Cronet getGlobalEngine]]; +#endif +} + - (void)setUp { self.continueAfterFailure = NO; [GRPCCall resetHostSettings]; _service = self.class.host ? [RMTTestService serviceWithHost:self.class.host] : nil; -#ifdef GRPC_COMPILE_WITH_CRONET - if (cronetEngine == NULL) { - // Cronet setup - [Cronet setHttp2Enabled:YES]; - [Cronet start]; - [GRPCCall useCronetWithEngine:[Cronet getGlobalEngine]]; - } -#endif } - (void)testEmptyUnaryRPC { |