increase sleep

This commit is contained in:
Jonas Partner
2008-10-30 14:45:40 +00:00
parent 81629363a9
commit e44ec9d230
2 changed files with 3 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ public class ErrorHandlingExecutorBeanPostProcessorTests {
ErrorThrowingRunnable runnable = new ErrorThrowingRunnable();
taskExecutor.execute(runnable);
assertTrue("Runnable faield to run",runnable.latch.await(5, TimeUnit.SECONDS));
Thread.sleep(100);
Thread.sleep(500);
assertEquals("Incorrect count of exceptions", 1, errorHandler.throwables.size());
}
@@ -59,7 +59,7 @@ public class ErrorHandlingExecutorBeanPostProcessorTests {
ErrorThrowingRunnable runnable = new ErrorThrowingRunnable();
taskExecutor.execute(runnable);
assertTrue("Runnable faield to run",runnable.latch.await(5, TimeUnit.SECONDS));
Thread.sleep(100);
Thread.sleep(500);
assertEquals("Incorrect count of exceptions", 0, errorHandler.throwables.size());
}

View File

@@ -56,6 +56,7 @@ public class RunnableProxyingMethodInterceptorTests {
proxiedExecutor.execute(runnable);
assertTrue("Runnable did not run", runnable.countDown.await(5, TimeUnit.SECONDS));
Thread.sleep(500);
assertEquals("Wrong count of exceptions in ErrorHandler", 1, errorHandler.throwables.size());
}