increased timeouts

This commit is contained in:
Jonas Partner
2008-10-30 07:34:57 +00:00
parent 1ca740ab8b
commit 05687725c3
2 changed files with 3 additions and 3 deletions

View File

@@ -48,7 +48,7 @@ public class ErrorHandlingExecutorBeanPostProcessorTests {
TaskExecutor taskExecutor = (TaskExecutor)applicationContext.getBean("proxiedTaskExecutor");
ErrorThrowingRunnable runnable = new ErrorThrowingRunnable();
taskExecutor.execute(runnable);
assertTrue("Runnable faield to run",runnable.latch.await(2, TimeUnit.SECONDS));
assertTrue("Runnable faield to run",runnable.latch.await(5, TimeUnit.SECONDS));
assertEquals("Incorrect count of exceptions", 1, errorHandler.throwables.size());
}
@@ -58,7 +58,7 @@ public class ErrorHandlingExecutorBeanPostProcessorTests {
ErrorThrowingRunnable runnable = new ErrorThrowingRunnable();
taskExecutor.execute(runnable);
runnable.latch.await(2, TimeUnit.SECONDS);
assertTrue("Runnable faield to run",runnable.latch.await(2, TimeUnit.SECONDS));
assertTrue("Runnable faield to run",runnable.latch.await(5, TimeUnit.SECONDS));
assertEquals("Incorrect count of exceptions", 0, errorHandler.throwables.size());
}

View File

@@ -55,7 +55,7 @@ public class RunnableProxyingMethodInterceptorTests {
TestRunnable runnable = new TestRunnable();
proxiedExecutor.execute(runnable);
assertTrue("Runnable did not run", runnable.countDown.await(2, TimeUnit.SECONDS));
assertTrue("Runnable did not run", runnable.countDown.await(5, TimeUnit.SECONDS));
assertEquals("Wrong count of exceptions in ErrorHandler", 1, errorHandler.throwables.size());
}