Skip to content

Commit

Permalink
add sleep period
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhenLian committed May 20, 2021
1 parent 043bd08 commit e17a2e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions netty/src/test/java/io/grpc/netty/AdvancedTlsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ public void advancedTlsKeyManagerTrustManagerMutualTlsTest() throws Exception {
.clientAuth(ClientAuth.REQUIRE).build();
server = Grpc.newServerBuilderForPort(0, serverCredentials).addService(
new SimpleServiceImpl()).build().start();
TimeUnit.SECONDS.sleep(5);
// Create a client to connect.
AdvancedTlsX509KeyManager clientKeyManager = new AdvancedTlsX509KeyManager();
clientKeyManager.updateIdentityCredentials(clientKey0, clientCert0);
Expand Down Expand Up @@ -231,6 +232,7 @@ public void verifyPeerCertificate(X509Certificate[] peerCertChain, String authTy
.clientAuth(ClientAuth.REQUIRE).build();
server = Grpc.newServerBuilderForPort(0, serverCredentials).addService(
new SimpleServiceImpl()).build().start();
TimeUnit.SECONDS.sleep(5);
// Create a client to connect.
AdvancedTlsX509KeyManager clientKeyManager = new AdvancedTlsX509KeyManager();
clientKeyManager.updateIdentityCredentials(clientKey0, clientCert0);
Expand Down Expand Up @@ -311,6 +313,7 @@ public void onFileReloadingKeyManagerTrustManagerTest() throws Exception {
.clientAuth(ClientAuth.REQUIRE).build();
server = Grpc.newServerBuilderForPort(0, serverCredentials).addService(
new SimpleServiceImpl()).build().start();
TimeUnit.SECONDS.sleep(5);
// Create a client to connect.
AdvancedTlsX509KeyManager clientKeyManager = new AdvancedTlsX509KeyManager();
Closeable clientKeyShutdown = clientKeyManager.updateIdentityCredentialsFromFile(clientKey0File,
Expand Down

0 comments on commit e17a2e5

Please sign in to comment.