diff --git a/org.springframework.integration/src/test/java/org/springframework/integration/executor/ErrorHandlingExecutorBeanPostProcessorTests.java b/org.springframework.integration/src/test/java/org/springframework/integration/executor/ErrorHandlingExecutorBeanPostProcessorTests.java index 8b92e6cfd5..fb76b9a0d7 100644 --- a/org.springframework.integration/src/test/java/org/springframework/integration/executor/ErrorHandlingExecutorBeanPostProcessorTests.java +++ b/org.springframework.integration/src/test/java/org/springframework/integration/executor/ErrorHandlingExecutorBeanPostProcessorTests.java @@ -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()); } diff --git a/org.springframework.integration/src/test/java/org/springframework/integration/executor/RunnableProxyingMethodInterceptorTests.java b/org.springframework.integration/src/test/java/org/springframework/integration/executor/RunnableProxyingMethodInterceptorTests.java index b7fe52ef03..ead843bf4a 100644 --- a/org.springframework.integration/src/test/java/org/springframework/integration/executor/RunnableProxyingMethodInterceptorTests.java +++ b/org.springframework.integration/src/test/java/org/springframework/integration/executor/RunnableProxyingMethodInterceptorTests.java @@ -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()); }