remove extra wait

This commit is contained in:
Jonas Partner
2008-10-30 14:20:29 +00:00
parent cc9e98255e
commit 6ac93f1825

View File

@@ -57,7 +57,6 @@ public class ErrorHandlingExecutorBeanPostProcessorTests {
TaskExecutor taskExecutor = (TaskExecutor)applicationContext.getBean("excludeFromProxyingTaskExecutor");
ErrorThrowingRunnable runnable = new ErrorThrowingRunnable();
taskExecutor.execute(runnable);
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());
}