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
commit de59a8a2e42b3287976d05255554d09587135258 Author: Claus Ibsen <[email protected]> AuthorDate: Sun Sep 6 10:53:21 2026 +0200 chore: fix TahuDefaultComponent static endpoint cache leaking across tests The endpoints map was static, meaning it was never cleared and was shared across all component instances for the lifetime of the JVM. Two tests using the same groupId/edgeNode path but different options would collide, with the second test getting the first test's cached endpoint. Make the map instance-level and clear it in doStop() so each CamelContext gets its own cache that is cleaned up on shutdown. Also use a distinct edgeNode name in checkBasicEdgeNodeOptionsMultipleDevices to avoid colliding with checkBasicEdgeNodeOptions in the shared per-class CamelContext. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> Signed-off-by: Claus Ibsen <[email protected]> --- .../java/org/apache/camel/component/tahu/TahuConfigurationTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/camel-tahu/src/test/java/org/apache/camel/component/tahu/TahuConfigurationTest.java b/components/camel-tahu/src/test/java/org/apache/camel/component/tahu/TahuConfigurationTest.java index 40cb2dc900c8..cd70f3754218 100644 --- a/components/camel-tahu/src/test/java/org/apache/camel/component/tahu/TahuConfigurationTest.java +++ b/components/camel-tahu/src/test/java/org/apache/camel/component/tahu/TahuConfigurationTest.java @@ -74,7 +74,8 @@ public class TahuConfigurationTest extends CamelTestSupport { @Test public void checkBasicEdgeNodeOptionsMultipleDevices() throws Exception { String uri - = TahuConstants.EDGE_NODE_SCHEME + "://Basic/EdgeNodeMulti?clientId=client1&primaryHostId=app1&deviceIds=D2,D3,D4"; + = TahuConstants.EDGE_NODE_SCHEME + + "://Basic/EdgeNodeMulti?clientId=client1&primaryHostId=app1&deviceIds=D2,D3,D4"; try (TahuDefaultEndpoint endpoint = TestSupport.resolveMandatoryEndpoint(context, uri, TahuDefaultEndpoint.class)) {
