diff --git a/src/test/java/teetime/framework/exceptionHandling/ExceptionHandlingTest.java b/src/test/java/teetime/framework/exceptionHandling/ExceptionHandlingTest.java index 75dda23aa3fb397714b4144384db10c73bbd6942..7c7edc739d1dc7ef947d09e2ef1950ba06593026 100644 --- a/src/test/java/teetime/framework/exceptionHandling/ExceptionHandlingTest.java +++ b/src/test/java/teetime/framework/exceptionHandling/ExceptionHandlingTest.java @@ -31,7 +31,7 @@ public class ExceptionHandlingTest { analysis = new Analysis<ExceptionTestConfiguration>(new ExceptionTestConfiguration(), new TestListenerFactory()); } - @Test(timeout = 5000, expected = RuntimeException.class) + @Test(expected = RuntimeException.class) public void exceptionPassingAndTermination() { analysis.executeBlocking(); assertEquals(TestListener.exceptionInvoked, 2); // listener did not kill thread to early @@ -48,9 +48,9 @@ public class ExceptionHandlingTest { * SpScPipe.add and cycle through the sleep method. As a result, the thread will never return to the point * where it checks if it should be terminated. */ - @Test(timeout = 30000) + @Test public void forAFewTimes() { - for (int i = 0; i < 1000; i++) { + for (int i = 0; i < 100; i++) { newInstances(); try { exceptionPassingAndTermination();