activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [2/4] activemq-artemis git commit: NO-JIRA fix intermittently failing MQTT test
Date Wed, 23 Aug 2017 02:08:23 GMT
NO-JIRA fix intermittently failing MQTT 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/e82f611e
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/e82f611e
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/e82f611e

Branch: refs/heads/master
Commit: e82f611e2e95e7b0fcd124f36f9c276eb1e4d2f9
Parents: 3d89a5e
Author: Justin Bertram <jbertram@apache.org>
Authored: Mon Aug 21 09:46:04 2017 -0500
Committer: Clebert Suconic <clebertsuconic@apache.org>
Committed: Tue Aug 22 22:08:24 2017 -0400

----------------------------------------------------------------------
 .../artemis/tests/integration/mqtt/imported/MQTTTest.java         | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/e82f611e/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/mqtt/imported/MQTTTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/mqtt/imported/MQTTTest.java
b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/mqtt/imported/MQTTTest.java
index 2e67dd6..794b002 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/mqtt/imported/MQTTTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/mqtt/imported/MQTTTest.java
@@ -99,7 +99,8 @@ public class MQTTTest extends MQTTTestSupport {
             mqtt.setVersion(version);
             connection = mqtt.blockingConnection();
             connection.connect();
-            assertTrue(connection.isConnected());
+            BlockingConnection finalConnection = connection;
+            assertTrue("Should be connected", Wait.waitFor(() -> finalConnection.isConnected(),
5000, 100));
          } finally {
             if (connection != null && connection.isConnected()) connection.disconnect();
          }


Mime
View raw message