This is an automated email from the ASF dual-hosted git repository.
gnodet pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 30795dc42556 CAMEL-24034: Fix flaky SingleMessageSameTopicIT (#24634)
30795dc42556 is described below
commit 30795dc42556a56d40eed65ae71f6cb8527bd8fd
Author: Guillaume Nodet <[email protected]>
AuthorDate: Mon Jul 13 07:08:47 2026 +0200
CAMEL-24034: Fix flaky SingleMessageSameTopicIT (#24634)
CAMEL-24034: Fix flaky SingleMessageSameTopicIT
Increase topic subscription uptime threshold from 200ms to 2000ms
to avoid lost messages on slow CI.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
---
.../jms/integration/consumers/SingleMessageSameTopicIT.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git
a/components/camel-jms/src/test/java/org/apache/camel/component/jms/integration/consumers/SingleMessageSameTopicIT.java
b/components/camel-jms/src/test/java/org/apache/camel/component/jms/integration/consumers/SingleMessageSameTopicIT.java
index 72056ac3eb51..a924a271b011 100644
---
a/components/camel-jms/src/test/java/org/apache/camel/component/jms/integration/consumers/SingleMessageSameTopicIT.java
+++
b/components/camel-jms/src/test/java/org/apache/camel/component/jms/integration/consumers/SingleMessageSameTopicIT.java
@@ -31,8 +31,9 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
public class SingleMessageSameTopicIT extends AbstractPersistentJMSTest {
- // topic subscriptions take a little longer to register than queue
consumers, so keep the longer 200ms threshold
- private static final long TOPIC_ROUTE_UPTIME_MILLIS = 200;
+ // topic subscriptions take longer to register than queue consumers on
slow CI;
+ // 200ms was too tight — use 2000ms to avoid flaky failures
+ private static final long TOPIC_ROUTE_UPTIME_MILLIS = 2000;
@BeforeEach
void waitAndPrepare() {