Skip to content

Commit 229e3cc

Browse files
committed
Increase wait timeout in FluxMessageChannelTests
1 parent 1690be4 commit 229e3cc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spring-integration-core/src/test/java/org/springframework/integration/channel/reactive/FluxMessageChannelTests.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
package org.springframework.integration.channel.reactive;
1818

19+
import java.time.Duration;
1920
import java.util.ArrayList;
2021
import java.util.List;
2122
import java.util.concurrent.CountDownLatch;
@@ -143,6 +144,7 @@ void testFluxMessageChannelCleanUp() throws InterruptedException {
143144
flowRegistration.destroy();
144145

145146
await()
147+
.atMost(Duration.ofSeconds(30))
146148
.until(() -> TestUtils.getPropertyValue(flux, "sink.sink.done", Boolean.class));
147149
}
148150

@@ -184,7 +186,7 @@ public String handle(int payload) {
184186
if (payload == 5) {
185187
throw new IllegalStateException("intentional");
186188
}
187-
return "" + payload;
189+
return String.valueOf(payload);
188190
}
189191

190192
@Bean

0 commit comments

Comments
 (0)