From 672857cbd88e9543980e017fa5ffa8ab3e643f2c Mon Sep 17 00:00:00 2001 From: Christoph Deppisch Date: Wed, 8 Jul 2026 19:05:42 +0200 Subject: [PATCH] fix(#1581): Fix misleading log output when waitForRunningState is false Co-Authored-By: Claude Opus 4.6 --- .../camel/actions/CamelRunIntegrationAction.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/endpoints/citrus-camel/src/main/java/org/citrusframework/camel/actions/CamelRunIntegrationAction.java b/endpoints/citrus-camel/src/main/java/org/citrusframework/camel/actions/CamelRunIntegrationAction.java index ad6664fdf8..c116f3e6b9 100644 --- a/endpoints/citrus-camel/src/main/java/org/citrusframework/camel/actions/CamelRunIntegrationAction.java +++ b/endpoints/citrus-camel/src/main/java/org/citrusframework/camel/actions/CamelRunIntegrationAction.java @@ -145,14 +145,15 @@ public void doExecute(TestContext context) { .integration(name)); } - logger.info("Waiting for the Camel integration '%s' (%s) to be running ...".formatted(name, pid)); - if (waitForRunningState) { + logger.info("Waiting for the Camel integration '%s' (%s) to be running ...".formatted(name, pid)); new CamelVerifyIntegrationAction.Builder() .integrationName(name) .isRunning() .build() .execute(context); + } else { + logger.info("Started Camel integration '%s' (%s) — not waiting for running state".formatted(name, pid)); } } catch (IOException e) { throw new CitrusRuntimeException("Failed to create temporary file from Camel integration source", e);