From 3a042c3a540f6fa83f5406fd89e342e79d669551 Mon Sep 17 00:00:00 2001 From: siddiqui irshad Date: Mon, 2 Nov 2026 17:24:29 +0530 Subject: [PATCH] Pass cause exception and fix error message in compose wait tests --- .../org/testcontainers/junit/ComposeWaitStrategyTest.java | 4 ++-- .../testcontainers/junit/DockerComposeWaitStrategyTest.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/test/java/org/testcontainers/junit/ComposeWaitStrategyTest.java b/core/src/test/java/org/testcontainers/junit/ComposeWaitStrategyTest.java index 371c70dafac..a6a2a5444f9 100644 --- a/core/src/test/java/org/testcontainers/junit/ComposeWaitStrategyTest.java +++ b/core/src/test/java/org/testcontainers/junit/ComposeWaitStrategyTest.java @@ -43,7 +43,7 @@ void testWaitOnListeningPort() { try { environment.start(); } catch (RuntimeException e) { - fail("Docker compose should start after waiting for listening port with failed with: " + e); + fail("Docker compose should start after waiting for listening port", e); } } @@ -57,7 +57,7 @@ void testWaitOnMultipleStrategiesPassing() { try { environment.start(); } catch (RuntimeException e) { - fail("Docker compose should start after waiting for listening port with failed with: " + e); + fail("Docker compose should start after waiting for multiple strategies", e); } } diff --git a/core/src/test/java/org/testcontainers/junit/DockerComposeWaitStrategyTest.java b/core/src/test/java/org/testcontainers/junit/DockerComposeWaitStrategyTest.java index 6f56ef9c24a..84d05dc41b9 100644 --- a/core/src/test/java/org/testcontainers/junit/DockerComposeWaitStrategyTest.java +++ b/core/src/test/java/org/testcontainers/junit/DockerComposeWaitStrategyTest.java @@ -43,7 +43,7 @@ void testWaitOnListeningPort() { try { environment.start(); } catch (RuntimeException e) { - fail("Docker compose should start after waiting for listening port with failed with: " + e); + fail("Docker compose should start after waiting for listening port", e); } } @@ -57,7 +57,7 @@ void testWaitOnMultipleStrategiesPassing() { try { environment.start(); } catch (RuntimeException e) { - fail("Docker compose should start after waiting for listening port with failed with: " + e); + fail("Docker compose should start after waiting for multiple strategies", e); } }