Commit 99a91ea3 authored by David Feliot's avatar David Feliot
Browse files

JORAM-176: update assertion.

parent 080467cc
......@@ -90,7 +90,7 @@ public class Test_Q_MText_Delay extends TestCase {
msg = (TextMessage) consumer.receive();
//System.out.println("msg = " + msg);
assertTrue("bad delivery delay", (System.currentTimeMillis() - current) > deliveryDelay);
assertTrue("bad delivery delay", (System.currentTimeMillis() - current) >= deliveryDelay);
//test messages
assertEquals(msg.getJMSMessageID(), msg.getJMSMessageID());
......
......@@ -112,7 +112,7 @@ public class Test_T_MText_Delay extends TestCase implements javax.jms.MessageLis
try {
TextMessage msg = (TextMessage) message;
System.out.println("msg = " + msg);
assertTrue("bad delivery delay", (System.currentTimeMillis() - current) > deliveryDelay);
assertTrue("bad delivery delay", (System.currentTimeMillis() - current) >= deliveryDelay);
//test messages
assertEquals(msg.getJMSMessageID(), msg.getJMSMessageID());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment