NO-JIRA Fixing NotificationTest

This commit is contained in:
Clebert Suconic 2020-04-02 11:15:16 -04:00
parent aefd730241
commit b0cfbe0a34
1 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ public class NotificationTest extends ActiveMQTestBase {
Assert.assertEquals(BINDING_ADDED.toString(), notifications[1].getObjectProperty(ManagementHelper.HDR_NOTIFICATION_TYPE).toString());
Assert.assertEquals(queue.toString(), notifications[1].getObjectProperty(ManagementHelper.HDR_ROUTING_NAME).toString());
Assert.assertEquals(address.toString(), notifications[1].getObjectProperty(ManagementHelper.HDR_ADDRESS).toString());
Assert.assertTrue(notifications[1].getTimestamp() > start);
Assert.assertTrue(notifications[1].getTimestamp() >= start);
Assert.assertTrue((long) notifications[1].getObjectProperty(ManagementHelper.HDR_NOTIFICATION_TIMESTAMP) >= start);
Assert.assertEquals(notifications[1].getTimestamp(), (long) notifications[1].getObjectProperty(ManagementHelper.HDR_NOTIFICATION_TIMESTAMP));
@ -473,7 +473,7 @@ public class NotificationTest extends ActiveMQTestBase {
private static void flush(final ClientConsumer notifConsumer) throws ActiveMQException {
ClientMessage message = null;
do {
message = notifConsumer.receive(500);
message = notifConsumer.receiveImmediate();
}
while (message != null);
}