Merge branch '2.4.x' into 2.5.x

Closes gh-27484
This commit is contained in:
Andy Wilkinson 2021-07-24 09:44:18 +01:00
commit dead33a90a
1 changed files with 2 additions and 1 deletions

View File

@ -72,7 +72,8 @@ class TunnelClientTests {
TunnelClient client = new TunnelClient(0, this.tunnelConnection);
int port = client.start();
SocketChannel channel = SocketChannel.open(new InetSocketAddress(port));
Thread.sleep(200);
Awaitility.await().atMost(Duration.ofSeconds(30)).until(this.tunnelConnection::getOpenedTimes,
(open) -> open == 1);
channel.close();
client.getServerThread().stopAcceptingConnections();
client.getServerThread().join(2000);