Repository: activemq-artemis
Updated Branches:
  refs/heads/master 448ff08bf -> f7e0e3d09


NO-JIRA fix timing issue in test


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/ac73f38d
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/ac73f38d
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/ac73f38d

Branch: refs/heads/master
Commit: ac73f38d3d74789a6e369416edf982b31553f696
Parents: c2f0c15
Author: Justin Bertram <jbert...@apache.org>
Authored: Wed Oct 25 10:12:29 2017 -0500
Committer: Justin Bertram <jbert...@apache.org>
Committed: Wed Oct 25 12:45:48 2017 -0500

----------------------------------------------------------------------
 .../artemis/tests/integration/amqp/JMSMessageConsumerTest.java    | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/ac73f38d/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/amqp/JMSMessageConsumerTest.java
----------------------------------------------------------------------
diff --git 
a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/amqp/JMSMessageConsumerTest.java
 
b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/amqp/JMSMessageConsumerTest.java
index 5d6ee47..b290d09 100644
--- 
a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/amqp/JMSMessageConsumerTest.java
+++ 
b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/amqp/JMSMessageConsumerTest.java
@@ -444,6 +444,9 @@ public class JMSMessageConsumerTest extends 
JMSClientTestSupport {
          message1.setText("filtered");
          producer.send(message1, DeliveryMode.PERSISTENT, 
Message.DEFAULT_PRIORITY, Message.DEFAULT_TIME_TO_LIVE);
 
+         // short delay to prevent the timestamps from being the same
+         Thread.sleep(2);
+
          TextMessage message2 = session.createTextMessage();
          message2.setText("expected");
          producer.send(message2, DeliveryMode.PERSISTENT, 
Message.DEFAULT_PRIORITY, Message.DEFAULT_TIME_TO_LIVE);

Reply via email to