Update test to catch CI server issue

master
Rossen Stoyanchev 11 years ago
parent 9280ca7749
commit 8780464c64
  1. 2
      spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandlerIntegrationTests.java
  2. 2
      spring-messaging/src/test/resources/log4j.properties

@ -581,7 +581,7 @@ public class StompBrokerRelayMessageHandlerIntegrationTests {
public void awaitAndAssert() throws InterruptedException { public void awaitAndAssert() throws InterruptedException {
synchronized(this.monitor) { synchronized(this.monitor) {
long endTime = System.currentTimeMillis() + 10000; long endTime = System.currentTimeMillis() + 60000;
while ((this.expected.size() != this.actual.size()) && (System.currentTimeMillis() < endTime)) { while ((this.expected.size() != this.actual.size()) && (System.currentTimeMillis() < endTime)) {
this.monitor.wait(500); this.monitor.wait(500);
} }

@ -5,7 +5,7 @@ log4j.appender.console.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%c] - %m%n
log4j.rootCategory=WARN, console log4j.rootCategory=WARN, console
log4j.logger.org.springframework.messaging=DEBUG log4j.logger.org.springframework.messaging=DEBUG
log4j.logger.org.springframework.web=DEBUG log4j.logger.org.springframework.web=DEBUG
log4j.logger.org.apache.activemq=INFO log4j.logger.org.apache.activemq=TRACE
# Enable TRACE level to chase integration test issues on CI servers # Enable TRACE level to chase integration test issues on CI servers
log4j.logger.org.springframework.messaging.simp.stomp=TRACE log4j.logger.org.springframework.messaging.simp.stomp=TRACE

Loading…
Cancel
Save