ARTEMIS-5173 Improving reliability on test

This commit is contained in:
Clebert Suconic 2024-12-11 10:47:17 -05:00
parent 8eebcb9d14
commit 2a067e08ee
2 changed files with 1 additions and 3 deletions

View File

@ -166,9 +166,7 @@ public class MessageExpirationTest extends ActiveMQTestBase {
producer.send(message);
long start = System.currentTimeMillis();
Wait.assertEquals(1, server.locateQueue(queue)::getMessagesExpired, 5000);
assertTrue(System.currentTimeMillis() - start <= (MAX_EXPIRATION + 200));
session.deleteQueue(queue);
}

View File

@ -124,7 +124,7 @@ public class PagedSNFSoakTest extends SoakTestBase {
@Test
@Timeout(240)
public void testRandomProtocol() throws Exception {
testAccumulateAndSend(randomProtocol());
testAccumulateAndSend("AMQP");
}
private void testAccumulateAndSend(final String protocol) throws Exception {