diff --git a/spring-batch-infrastructure-tests/src/test/java/org/springframework/batch/repeat/jms/AsynchronousTests.java b/spring-batch-infrastructure-tests/src/test/java/org/springframework/batch/repeat/jms/AsynchronousTests.java index 22edf4f2a..2f54d40ee 100644 --- a/spring-batch-infrastructure-tests/src/test/java/org/springframework/batch/repeat/jms/AsynchronousTests.java +++ b/spring-batch-infrastructure-tests/src/test/java/org/springframework/batch/repeat/jms/AsynchronousTests.java @@ -161,7 +161,7 @@ public class AsynchronousTests { // Need to sleep here, but not too long or the // container goes into its own recovery cycle and spits out the bad // message... - waitFor(list,2,2000); + waitFor(list,2,500); container.stop(); @@ -189,9 +189,9 @@ public class AsynchronousTests { */ private void waitFor(List list, int size, int timeout) throws InterruptedException { int count = 0; - int max = timeout / 100; + int max = timeout / 50; while (count