From 9a6ec1b4b5a2e39841b44b466b1e9986700d4325 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Tue, 6 Nov 2012 18:33:21 +0100 Subject: [PATCH] Increase sleep time in ScheduledATAITests This commit increases the sleep time in ScheduledAndTransactionalAnnotationIntegrationTests with the hope of improving the robustness of the test suite on the CI build server. --- .../ScheduledAndTransactionalAnnotationIntegrationTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/springframework/scheduling/annotation/ScheduledAndTransactionalAnnotationIntegrationTests.java b/src/test/java/org/springframework/scheduling/annotation/ScheduledAndTransactionalAnnotationIntegrationTests.java index 8720f31bd8..4397ba95e5 100644 --- a/src/test/java/org/springframework/scheduling/annotation/ScheduledAndTransactionalAnnotationIntegrationTests.java +++ b/src/test/java/org/springframework/scheduling/annotation/ScheduledAndTransactionalAnnotationIntegrationTests.java @@ -69,7 +69,7 @@ public class ScheduledAndTransactionalAnnotationIntegrationTests { ctx.register(Config.class, SubclassProxyTxConfig.class, RepoConfigA.class); ctx.refresh(); - Thread.sleep(10); // allow @Scheduled method to be called several times + Thread.sleep(50); // allow @Scheduled method to be called several times MyRepository repository = ctx.getBean(MyRepository.class); CallCountingTransactionManager txManager = ctx.getBean(CallCountingTransactionManager.class); @@ -84,7 +84,7 @@ public class ScheduledAndTransactionalAnnotationIntegrationTests { ctx.register(Config.class, JdkProxyTxConfig.class, RepoConfigB.class); ctx.refresh(); - Thread.sleep(30); // allow @Scheduled method to be called several times + Thread.sleep(50); // allow @Scheduled method to be called several times MyRepositoryWithScheduledMethod repository = ctx.getBean(MyRepositoryWithScheduledMethod.class); CallCountingTransactionManager txManager = ctx.getBean(CallCountingTransactionManager.class);