diff --git a/core/camel-core/src/test/java/org/apache/camel/impl/DefaultConsumerTemplateWithCustomCacheMaxSizeTest.java b/core/camel-core/src/test/java/org/apache/camel/impl/DefaultConsumerTemplateWithCustomCacheMaxSizeTest.java index befd85c30bfe2..528a26540b123 100644 --- a/core/camel-core/src/test/java/org/apache/camel/impl/DefaultConsumerTemplateWithCustomCacheMaxSizeTest.java +++ b/core/camel-core/src/test/java/org/apache/camel/impl/DefaultConsumerTemplateWithCustomCacheMaxSizeTest.java @@ -53,7 +53,7 @@ public void testCacheConsumers() { // the eviction is async so force cleanup template.cleanUp(); - await().atMost(1, TimeUnit.SECONDS).until(() -> template.getCurrentCacheSize() == 200); + await().atMost(5, TimeUnit.SECONDS).until(() -> template.getCurrentCacheSize() == 200); assertEquals(200, template.getCurrentCacheSize(), "Size should be 200"); template.stop();