From c129a02e6c752b49bacd4a445092a44f66c2a1e9 Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Tue, 11 Jun 2013 17:48:07 +0100 Subject: [PATCH] INT-2721 Increase Timers on JDBC Delayer Tests Still fail when the build server is under heavy load. --- .../DelayerHandlerRescheduleIntegrationTests-context.xml | 2 +- .../jdbc/DelayerHandlerRescheduleIntegrationTests.java | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/spring-integration-jdbc/src/test/java/org/springframework/integration/jdbc/DelayerHandlerRescheduleIntegrationTests-context.xml b/spring-integration-jdbc/src/test/java/org/springframework/integration/jdbc/DelayerHandlerRescheduleIntegrationTests-context.xml index ab97388e11..b49a6b072b 100644 --- a/spring-integration-jdbc/src/test/java/org/springframework/integration/jdbc/DelayerHandlerRescheduleIntegrationTests-context.xml +++ b/spring-integration-jdbc/src/test/java/org/springframework/integration/jdbc/DelayerHandlerRescheduleIntegrationTests-context.xml @@ -20,7 +20,7 @@ diff --git a/spring-integration-jdbc/src/test/java/org/springframework/integration/jdbc/DelayerHandlerRescheduleIntegrationTests.java b/spring-integration-jdbc/src/test/java/org/springframework/integration/jdbc/DelayerHandlerRescheduleIntegrationTests.java index 4469668a34..f2f75f0cc4 100644 --- a/spring-integration-jdbc/src/test/java/org/springframework/integration/jdbc/DelayerHandlerRescheduleIntegrationTests.java +++ b/spring-integration-jdbc/src/test/java/org/springframework/integration/jdbc/DelayerHandlerRescheduleIntegrationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -25,6 +25,7 @@ import java.util.concurrent.TimeUnit; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Test; + import org.springframework.context.support.AbstractApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; import org.springframework.integration.Message; @@ -133,7 +134,7 @@ public class DelayerHandlerRescheduleIntegrationTests { input.send(MessageBuilder.withPayload("test").build()); - Thread.sleep(100); + Thread.sleep(1000); assertEquals(1, messageStore.messageGroupSize(delayerMessageGroupId));