diff --git a/src/test/java/Jtest.java b/src/test/java/Jtest.java index d55a43c..d6efbcb 100644 --- a/src/test/java/Jtest.java +++ b/src/test/java/Jtest.java @@ -65,9 +65,7 @@ public void channelTest() { } if (errors != 0) { - System.exit(1); + throw new IllegalStateException("Failed tests: " + errors); } - - System.exit(0); } }