You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by gn...@apache.org on 2026/07/13 05:08:55 UTC
(camel) branch main updated: CAMEL-24034: Fix flaky SingleMessageSameTopicIT (#24634)
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 <gn...@gmail.com>
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 <no...@anthropic.com>
---
.../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() {