Skip to content

Commit

Permalink
Fix slow tests that took 40 seconds to get through tearDown. (#11530)
Browse files Browse the repository at this point in the history
  • Loading branch information
larry-safran authored Sep 17, 2024
1 parent ce33df4 commit bdc0530
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions s2a/src/test/java/io/grpc/s2a/handshaker/IntegrationTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,15 @@ public void setUp() throws Exception {

@After
public void tearDown() throws Exception {
server.awaitTermination(10, SECONDS);
server.shutdown();
s2aServer.awaitTermination(10, SECONDS);
s2aServer.shutdown();
s2aDelayServer.awaitTermination(10, SECONDS);
s2aDelayServer.shutdown();
mtlsS2AServer.awaitTermination(10, SECONDS);
mtlsS2AServer.shutdown();

server.awaitTermination(10, SECONDS);
s2aServer.awaitTermination(10, SECONDS);
s2aDelayServer.awaitTermination(10, SECONDS);
mtlsS2AServer.awaitTermination(10, SECONDS);
}

@Test
Expand Down

0 comments on commit bdc0530

Please sign in to comment.