Skip to content

Commit 3c832f0

Browse files
committed
Upgrade ActiveMQ and extend timeout in STOMP tests
1 parent e87a49c commit 3c832f0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ configure(allprojects) { project ->
9595
dependency "commons-io:commons-io:2.5"
9696
dependency "io.vavr:vavr:0.10.3"
9797
dependency "net.sf.jopt-simple:jopt-simple:5.0.4"
98-
dependencySet(group: 'org.apache.activemq', version: '5.8.0') {
98+
dependencySet(group: 'org.apache.activemq', version: '5.16.0') {
9999
entry 'activemq-broker'
100100
entry('activemq-kahadb-store') {
101101
exclude group: "org.springframework", name: "spring-context"

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(5000)).isTrue();
110-
assertThat(consumingHandler2.awaitForSubscriptions(5000)).isTrue();
109+
assertThat(consumingHandler1.awaitForSubscriptions(10000)).isTrue();
110+
assertThat(consumingHandler2.awaitForSubscriptions(10000)).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(20000, TimeUnit.MILLISECONDS);
257+
BrokerAvailabilityEvent event = this.eventQueue.poll(40000, 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)