From ce906c8420e156785f3231c69fd2a8b29425375a Mon Sep 17 00:00:00 2001 From: Erich Duda Date: Wed, 10 Feb 2016 16:45:30 +0100 Subject: [PATCH] ARTEMIS-287 - [Artemis Testsuite] PagingTest#testDeleteQueueRestart fails on slower machines --- .../activemq/artemis/tests/integration/client/PagingTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 1efb971e5fd..4f64f422b52 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 void testDeleteQueueRestart() throws Exception { 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); }