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 3b2c9ba6db6 Fix flaky slow CI servers
3b2c9ba6db6 is described below
commit 3b2c9ba6db6c1dffac43d01b4440a175add6c6c0
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Sep 4 19:32:41 2024 +0200
Fix flaky slow CI servers
---
.../java/org/apache/camel/support/cache/SimpleLRUCacheTest.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git
a/core/camel-core/src/test/java/org/apache/camel/support/cache/SimpleLRUCacheTest.java
b/core/camel-core/src/test/java/org/apache/camel/support/cache/SimpleLRUCacheTest.java
index 94e9bf19794..959fee7f4ec 100644
---
a/core/camel-core/src/test/java/org/apache/camel/support/cache/SimpleLRUCacheTest.java
+++
b/core/camel-core/src/test/java/org/apache/camel/support/cache/SimpleLRUCacheTest.java
@@ -350,7 +350,8 @@ class SimpleLRUCacheTest {
}
}).start();
}
- assertTrue(latch.await(20, TimeUnit.SECONDS), "Should have completed
within a reasonable timeframe");
+ assertTrue(latch.await(20, TimeUnit.SECONDS),
+ "Should have completed within a reasonable timeframe. Latch
at: " + latch.getCount());
assertEquals(maximumCacheSize, cache.size());
assertEquals(totalKeysPerThread * threads - maximumCacheSize,
counter.get());
}
@@ -377,7 +378,8 @@ class SimpleLRUCacheTest {
}
}).start();
}
- assertTrue(latch.await(20, TimeUnit.SECONDS), "Should have completed
within a reasonable timeframe");
+ assertTrue(latch.await(20, TimeUnit.SECONDS),
+ "Should have completed within a reasonable timeframe. Latch
at: " + latch.getCount());
assertEquals(maximumCacheSize, cache.size());
counter.set(0);
for (int j = 0; j < maximumCacheSize; j++) {