Increase wait timeout in FluxMessageChannelTests

This commit is contained in:
abilan
2023-06-28 13:21:41 -04:00
parent 1690be45fc
commit 229e3cc081

View File

@@ -16,6 +16,7 @@
package org.springframework.integration.channel.reactive;
import java.time.Duration;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CountDownLatch;
@@ -143,6 +144,7 @@ public class FluxMessageChannelTests {
flowRegistration.destroy();
await()
.atMost(Duration.ofSeconds(30))
.until(() -> TestUtils.getPropertyValue(flux, "sink.sink.done", Boolean.class));
}
@@ -184,7 +186,7 @@ public class FluxMessageChannelTests {
if (payload == 5) {
throw new IllegalStateException("intentional");
}
return "" + payload;
return String.valueOf(payload);
}
@Bean