You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2023/05/25 17:56:46 UTC

[camel] 03/03: CAMEL-19295: Fix regression in test DefaultProducerCacheTest

This is an automated email from the ASF dual-hosted git repository.

nfilotto pushed a commit to branch CAMEL-19295/backport-3.x
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 1cc50fc0cd87109db12ebe919ca1f325180c6b66
Author: Nicolas Filotto <nf...@talend.com>
AuthorDate: Thu May 25 11:25:23 2023 +0200

    CAMEL-19295: Fix regression in test DefaultProducerCacheTest
---
 .../src/test/java/org/apache/camel/impl/DefaultProducerCacheTest.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/camel-core/src/test/java/org/apache/camel/impl/DefaultProducerCacheTest.java b/core/camel-core/src/test/java/org/apache/camel/impl/DefaultProducerCacheTest.java
index 599d0a1bae5..9cdd6dd119e 100644
--- a/core/camel-core/src/test/java/org/apache/camel/impl/DefaultProducerCacheTest.java
+++ b/core/camel-core/src/test/java/org/apache/camel/impl/DefaultProducerCacheTest.java
@@ -189,8 +189,8 @@ public class DefaultProducerCacheTest extends ContextTestSupport {
         // nothing has stopped yet even we have 3 producers and a cache limit of 2
         assertEquals(0, stopCounter.get());
 
-        // force evict p1 while its in use (eg simulate someone else grabbing it while evicting race condition)
-        cache.forceEvict(p1);
+        // force evict p2 while its in use (eg simulate someone else grabbing it while evicting race condition)
+        cache.forceEvict(p2);
 
         // and should still not be stopped
         assertEquals(0, stopCounter.get());