Skip to content

Commit 88ccab8

Browse files
committed
Revert timeout inscreases in STOMP tests
This change is not fixing tests but rather increasing their duration, so we're reverting this change as a result.
1 parent d0cf90b commit 88ccab8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/ReactorNettyTcpStompClientTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ public void publishSubscribe() throws Exception {
106106
ConsumingHandler consumingHandler2 = new ConsumingHandler(destination);
107107
ListenableFuture<StompSession> consumerFuture2 = this.client.connect(consumingHandler2);
108108

109-
assertThat(consumingHandler1.awaitForSubscriptions(10000)).isTrue();
110-
assertThat(consumingHandler2.awaitForSubscriptions(10000)).isTrue();
109+
assertThat(consumingHandler1.awaitForSubscriptions(5000)).isTrue();
110+
assertThat(consumingHandler2.awaitForSubscriptions(5000)).isTrue();
111111

112112
ProducingHandler producingHandler = new ProducingHandler();
113113
producingHandler.addToSend(destination, "foo1");

spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandlerIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ public void publishEvent(Object event) {
254254
}
255255

256256
public void expectBrokerAvailabilityEvent(boolean isBrokerAvailable) throws InterruptedException {
257-
BrokerAvailabilityEvent event = this.eventQueue.poll(40000, TimeUnit.MILLISECONDS);
257+
BrokerAvailabilityEvent event = this.eventQueue.poll(20000, TimeUnit.MILLISECONDS);
258258
assertThat(event).as("Times out waiting for BrokerAvailabilityEvent[" + isBrokerAvailable + "]").isNotNull();
259259
assertThat(event.isBrokerAvailable()).isEqualTo(isBrokerAvailable);
260260
}

0 commit comments

Comments
 (0)