Increase timeout in the MethodInvokingMessageHandlerTests

**Auto-cherry-pick to `6.3.x` & `6.2.x`**
This commit is contained in:
Artem Bilan
2024-10-09 16:27:33 -04:00
parent 912af3dc22
commit 01c04fb87c

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();