Skip to content

Commit 4d5caf8

Browse files
committed
Use exit() for integration test client
On my machine, the client currently takes ~3s to run a test. However, with exit() it takes < 1s. When doing lots of integration tests, those seconds add up. We know one of those seconds is the DESTROY_DELAY_SECONDS of SharedResourceHolder. Part of another second appears to be Netty creating any threads that weren't previously created when shutting down.
1 parent eb15eb2 commit 4d5caf8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

interop-testing/src/main/java/io/grpc/testing/integration/TestServiceClient.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ public void run() {
8080
} finally {
8181
client.tearDown();
8282
}
83+
System.exit(0);
8384
}
8485

8586
private String serverHost = "localhost";

0 commit comments

Comments
 (0)