This closes #386

This commit is contained in:
Clebert Suconic 2016-02-10 16:35:55 -05:00
commit 66085ae7fe
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}