Skip to content

Commit 189b81f

Browse files
authored
Speed netty tests shutdown (#126734)
1 parent 01a8a9b commit 189b81f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

x-pack/plugin/security/src/internalClusterTest/java/org/elasticsearch/xpack/security/transport/netty4/SecurityNetty4TransportCloseNotifyIT.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636

3737
import java.util.Collection;
3838
import java.util.concurrent.CountDownLatch;
39+
import java.util.concurrent.TimeUnit;
3940
import java.util.concurrent.atomic.AtomicBoolean;
4041
import java.util.function.Consumer;
4142

@@ -121,7 +122,7 @@ public void testSendCloseNotifyAfterHttpGetRequests() throws Exception {
121122
channel.close().sync();
122123
}
123124
} finally {
124-
client.config().group().shutdownGracefully().sync();
125+
client.config().group().shutdownGracefully(0, 0, TimeUnit.SECONDS).sync();
125126
}
126127
}
127128

@@ -150,7 +151,7 @@ public void testSendCloseNotifyCancelAction() throws Exception {
150151
channel.close().sync();
151152
}
152153
} finally {
153-
client.config().group().shutdownGracefully().sync();
154+
client.config().group().shutdownGracefully(0, 0, TimeUnit.SECONDS).sync();
154155
}
155156
}
156157

0 commit comments

Comments
 (0)