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); } }