File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
tests/common/src/main/java/tech/ydb/test/integration/docker Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff 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 > {
Original file line number Diff line number Diff line change 11package tech .ydb .test .integration .docker ;
22
33
4+
45import io .grpc .Grpc ;
56import io .grpc .InsecureChannelCredentials ;
67import io .grpc .ManagedChannel ;
@@ -75,6 +76,7 @@ public byte[] pemCert() {
7576 @ Override
7677 public void close () {
7778 server .close ();
79+ channel .shutdownNow ();
7880
7981 if (env .dockerReuse () && TestcontainersConfiguration .getInstance ().environmentSupportsReuse ()) {
8082 return ;
You can’t perform that action at this time.
0 commit comments