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: ARTEMIS-287 - [Artemis Testsuite] PagingTest#testDeleteQueueRestart fails on slower machines
Date Wed, 10 Feb 2016 21:36:22 GMT
Repository: activemq-artemis
Updated Branches:
  refs/heads/master ece5d81e3 -> 66085ae7f


ARTEMIS-287 - [Artemis Testsuite] PagingTest#testDeleteQueueRestart fails on slower machines


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

Branch: refs/heads/master
Commit: ce906c8420e156785f3231c69fd2a8b29425375a
Parents: ece5d81
Author: Erich Duda <eduda@redhat.com>
Authored: Wed Feb 10 16:45:30 2016 +0100
Committer: Erich Duda <eduda@redhat.com>
Committed: Wed Feb 10 16:45:30 2016 +0100

----------------------------------------------------------------------
 .../activemq/artemis/tests/integration/client/PagingTest.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/ce906c84/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/PagingTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/PagingTest.java
b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/PagingTest.java
index 1efb971..4f64f42 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/PagingTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/PagingTest.java
@@ -790,10 +790,10 @@ public class PagingTest extends ActiveMQTestBase {
       producer.close();
       session.start();
 
-      long timeout = System.currentTimeMillis() + 10000;
+      long timeout = System.currentTimeMillis() + 30000;
 
       // I want the buffer full to make sure there are pending messages on the server's side
-      while (System.currentTimeMillis() < timeout && cons.getBufferSize() <
1000 && cons2.getBufferSize() < 1000) {
+      while (System.currentTimeMillis() < timeout && (cons.getBufferSize() <
1000 || cons2.getBufferSize() < 1000)) {
          System.out.println("cons1 buffer = " + cons.getBufferSize() + ", cons2 buffer =
" + cons2.getBufferSize());
          Thread.sleep(100);
       }


Mime
View raw message