Increase timeout in the MethodInvokingMessageHandlerTests

(cherry picked from commit 01c04fb87c)
This commit is contained in:
Artem Bilan
2024-10-09 16:27:33 -04:00
committed by Spring Builds
parent ca1f66eaf1
commit 6ea04997ee

View File

@@ -93,7 +93,7 @@ public class MethodInvokingMessageHandlerTests {
endpoint.setTrigger(new PeriodicTrigger(Duration.ofMillis(10)));
context.registerEndpoint("testEndpoint", endpoint);
context.refresh();
String result = queue.poll(2000, TimeUnit.MILLISECONDS);
String result = queue.poll(10000, TimeUnit.MILLISECONDS);
assertThat(result).isNotNull();
assertThat(result).isEqualTo("testing");
context.close();