polishing broken test trying to determine why it fails in CI

This commit is contained in:
Oleg Zhurakousky
2011-08-02 08:10:27 -04:00
parent c6403f3feb
commit 563d1db0f1
2 changed files with 5 additions and 1 deletions

View File

@@ -121,7 +121,8 @@ configure(javaprojects) {
junitVersion = '4.8.2'
log4jVersion = '1.2.12'
mockitoVersion = '1.8.4'
springVersion = '3.1.0.M2'
//springVersion = '3.1.0.M2'
springVersion = '3.0.6.BUILD-SNAPSHOT'
springAmqpVersion = '1.0.0.RC2'
springDataMongoVersion = '1.0.0.BUILD-SNAPSHOT'
springDataCommonsVersion = '1.2.0.BUILD-SNAPSHOT'

View File

@@ -60,6 +60,9 @@ public class RedisInboundChannelAdapterTests extends RedisAvailableTests{
Thread.sleep(2000);
for (int i = 0; i < numToTest; i++) {
Message<?> message = channel.receive(5000);
if (message == null){
throw new RuntimeException("Failed to receive message # " + i);
}
assertNotNull(message);
assertTrue(message.getPayload().toString().startsWith("test-"));
counter++;