NO-JIRA fixing intermittent failure on test

This commit is contained in:
Clebert Suconic 2021-06-07 13:05:34 -04:00
parent 0edf599adc
commit 3913c17c8d
1 changed files with 1 additions and 0 deletions

View File

@ -478,6 +478,7 @@ public class QueueControlTest extends ManagementTestBase {
long beforeSend = System.currentTimeMillis();
ClientProducer producer = session.createProducer(address);
producer.send(session.createMessage(false).putStringProperty("x", "valueX").putStringProperty("y", "valueY"));
Wait.assertEquals(1, queueControl::getMessageCount);
long firstMessageTimestamp = queueControl.getFirstMessageTimestamp();
assertTrue(beforeSend <= firstMessageTimestamp);