Skip to content

Commit 20dd0e5

Browse files
committed
Fixed proxy server closing
1 parent 49c2a11 commit 20dd0e5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/common/src/main/java/tech/ydb/test/integration/docker/GrpcProxyServer.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ public EndpointRecord endpoint() {
6262
@Override
6363
public void close() {
6464
server.shutdown();
65+
try {
66+
server.awaitTermination(60, TimeUnit.SECONDS);
67+
} catch (InterruptedException ex) {
68+
logger.error("cannot await proxy server closing", ex);
69+
Thread.currentThread().interrupt();
70+
}
6571
}
6672

6773
private static class CallProxy<ReqT, RespT> {

0 commit comments

Comments
 (0)