activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [1/2] activemq-artemis git commit: Change StompV12Test to use waitDisconnect more
Date Tue, 26 Jan 2016 21:34:58 GMT
Repository: activemq-artemis
Updated Branches:
  refs/heads/master dedbadf10 -> 5ecfeca2e


Change StompV12Test to use waitDisconnect more


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

Branch: refs/heads/master
Commit: 77d2e8583858127993b76eb0de504c42e752dff2
Parents: dedbadf
Author: Ville Skyttä <ville.skytta@iki.fi>
Authored: Tue Jan 26 09:02:49 2016 +0200
Committer: Clebert Suconic <clebertsuconic@apache.org>
Committed: Tue Jan 26 16:34:04 2016 -0500

----------------------------------------------------------------------
 .../artemis/tests/integration/stomp/v12/StompV12Test.java    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/77d2e858/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/v12/StompV12Test.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/v12/StompV12Test.java
b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/v12/StompV12Test.java
index 246cc30..9835c17 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/v12/StompV12Test.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/v12/StompV12Test.java
@@ -952,7 +952,7 @@ public class StompV12Test extends StompV11TestBase {
 
       Assert.assertEquals("ERROR", error.getCommand());
 
-      Thread.sleep(1000);
+      waitDisconnect(connV12);
       Assert.assertFalse("Should be disconnected in STOMP 1.2 after ERROR", connV12.isConnected());
 
       //message should be still there
@@ -981,7 +981,7 @@ public class StompV12Test extends StompV11TestBase {
 
       System.out.println("Receiver error: " + error);
 
-      Thread.sleep(1000);
+      waitDisconnect(connV12);
       Assert.assertFalse("Should be disconnected in STOMP 1.2 after ERROR", connV12.isConnected());
 
       //message should still there
@@ -1523,7 +1523,7 @@ public class StompV12Test extends StompV11TestBase {
       ClientStompFrame frame = connV12.receiveFrame();
       Assert.assertTrue(frame.getCommand().equals("ERROR"));
 
-      Thread.sleep(1000);
+      waitDisconnect(connV12);
       Assert.assertFalse("Should be disconnected in STOMP 1.2 after ERROR", connV12.isConnected());
    }
 
@@ -2516,7 +2516,7 @@ public class StompV12Test extends StompV11TestBase {
       Assert.assertEquals("1234", frame.getHeader("receipt-id"));
       System.out.println("message: " + frame.getHeader("message"));
 
-      Thread.sleep(1000);
+      waitDisconnect(connV12);
       Assert.assertFalse("Should be disconnected in STOMP 1.2 after ERROR", connV12.isConnected());
    }
 


Mime
View raw message