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

Reset all host configs *before* setting what we need

Not after :) This fixes the local server tests failing to SSL handshake.
parent 4da5fd07
No related branches found
No related tags found
No related merge requests found
......@@ -48,10 +48,10 @@ static NSString * const kLocalCleartextHost = @"localhost:5050";
}
- (void)setUp {
[super setUp];
// Register test server as non-SSL.
[GRPCCall useInsecureConnectionsForHost:kLocalCleartextHost];
[super setUp];
}
@end
......@@ -48,13 +48,13 @@ static NSString * const kLocalSSLHost = @"localhost:5051";
}
- (void)setUp {
[super setUp];
// Register test server certificates and name.
NSBundle *bundle = [NSBundle bundleForClass:self.class];
NSString *certsPath = [bundle pathForResource:@"TestCertificates.bundle/test-certificates"
ofType:@"pem"];
[GRPCCall useTestCertsPath:certsPath testName:@"foo.test.google.fr" forHost:kLocalSSLHost];
[super setUp];
}
- (void)testExceptions {
......
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