You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2022/09/27 08:48:00 UTC
[camel] branch main updated: Flaky test
This is an automated email from the ASF dual-hosted git repository.
davsclaus 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 35c11ade31c Flaky test
35c11ade31c is described below
commit 35c11ade31c74856cecb01bc7e783b08af0d5b1d
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Sep 27 09:58:46 2022 +0200
Flaky test
---
.../test/java/org/apache/camel/support/DefaultTimeoutMapTest.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/core/camel-core/src/test/java/org/apache/camel/support/DefaultTimeoutMapTest.java b/core/camel-core/src/test/java/org/apache/camel/support/DefaultTimeoutMapTest.java
index d152f713f85..60001073306 100644
--- a/core/camel-core/src/test/java/org/apache/camel/support/DefaultTimeoutMapTest.java
+++ b/core/camel-core/src/test/java/org/apache/camel/support/DefaultTimeoutMapTest.java
@@ -149,7 +149,10 @@ public class DefaultTimeoutMapTest {
map.put("F", 6, 800);
await().atMost(Duration.ofSeconds(2))
- .untilAsserted(() -> assertEquals("D", keys.get(0)));
+ .untilAsserted(() -> {
+ assertFalse(keys.isEmpty());
+ assertEquals("D", keys.get(0));
+ });
assertEquals(4, values.get(0).intValue());
assertEquals("B", keys.get(1));