Skip to content

Commit aec6228

Browse files
committed
NO-JIRA Extend some test timeouts and waits for slower CI jobs
Attempt to stabilize some tests on slower CI runs where open timeouts can trigger to quickly.
1 parent c7c43cc commit aec6228

File tree

1 file changed

+3
-11
lines changed
  • protonj2-client/src/test/java/org/apache/qpid/protonj2/client/impl

1 file changed

+3
-11
lines changed

protonj2-client/src/test/java/org/apache/qpid/protonj2/client/impl/SenderTest.java

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1315,7 +1315,7 @@ private void tryReadSenderRemoteProperties(boolean attachResponse) throws Except
13151315
Session session = connection.openSession();
13161316
session.openFuture().get();
13171317

1318-
SenderOptions options = new SenderOptions().openTimeout(75);
1318+
SenderOptions options = new SenderOptions().openTimeout(100);
13191319
Sender sender = session.openSender("test-sender", options);
13201320

13211321
peer.waitForScriptToComplete(5, TimeUnit.SECONDS);
@@ -1381,13 +1381,9 @@ private void tryReadRemoteOfferedCapabilities(boolean attachResponse) throws Exc
13811381
LOG.info("Connect test started, peer listening on: {}", remoteURI);
13821382

13831383
Client container = Client.create();
1384-
ConnectionOptions options = new ConnectionOptions().openTimeout(75);
1384+
ConnectionOptions options = new ConnectionOptions().openTimeout(100);
13851385
Connection connection = container.connect(remoteURI.getHost(), remoteURI.getPort(), options);
1386-
connection.openFuture().get();
1387-
13881386
Session session = connection.openSession();
1389-
session.openFuture().get();
1390-
13911387
Sender sender = session.openSender("test-sender");
13921388

13931389
peer.waitForScriptToComplete(5, TimeUnit.SECONDS);
@@ -1449,13 +1445,9 @@ private void tryReadRemoteDesiredCapabilities(boolean attachResponse) throws Exc
14491445
LOG.info("Connect test started, peer listening on: {}", remoteURI);
14501446

14511447
Client container = Client.create();
1452-
ConnectionOptions options = new ConnectionOptions().openTimeout(75);
1448+
ConnectionOptions options = new ConnectionOptions().openTimeout(100);
14531449
Connection connection = container.connect(remoteURI.getHost(), remoteURI.getPort(), options);
1454-
connection.openFuture().get();
1455-
14561450
Session session = connection.openSession();
1457-
session.openFuture().get();
1458-
14591451
Sender sender = session.openSender("test-sender");
14601452

14611453
peer.waitForScriptToComplete(5, TimeUnit.SECONDS);

0 commit comments

Comments
 (0)