Skip to content

Commit

Permalink
PROTON-2780 Remove leftover thread sleep from test
Browse files Browse the repository at this point in the history
Remove an old thread sleep and add in test expecation for connection
drop to fully validate client close on request.
  • Loading branch information
tabish121 committed Dec 7, 2023
1 parent 052d7ef commit f2e6298
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class ProtonTestClientTest extends TestPeerTestsBase {
public void testClientCanConnectAndExchangeAMQPHeaders() throws Exception {
try (ProtonTestServer peer = new ProtonTestServer()) {
peer.expectAMQPHeader().respondWithAMQPHeader();
peer.expectConnectionToDrop();
peer.start();

URI remoteURI = peer.getServerURI();
Expand All @@ -58,8 +59,6 @@ public void testClientCanConnectAndExchangeAMQPHeaders() throws Exception {

LOG.info("Test started, peer listening on: {}", remoteURI);

Thread.sleep(100);

peer.waitForScriptToComplete(5, TimeUnit.SECONDS);
}
}
Expand Down

0 comments on commit f2e6298

Please sign in to comment.