Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public TestResult runTests(ImTranslator translator, ImProg imProg, @Nullable Fun
service = Executors.newSingleThreadScheduledExecutor();
service.execute(future);
try {
future.get(20, TimeUnit.SECONDS); // Wait 20 seconds for test to complete
future.get(300, TimeUnit.SECONDS); // Wait 300 seconds for test to complete
} catch (TimeoutException ex) {
future.cancel(true);
throw new TestTimeOutException();
Expand Down Expand Up @@ -231,7 +231,7 @@ public TestResult runTests(ImTranslator translator, ImProg imProg, @Nullable Fun
println("\t" + failure.getMessageWithStackFrame());
} catch (TestTimeOutException e) {
failTests.add(new TestFailure(f, interpreter.getStackFrames(), e.getMessage()));
println("\tFAILED - TIMEOUT (This test did not complete in 20 seconds, it might contain an endless loop)");
println("\tFAILED - TIMEOUT (This test did not complete in 300 seconds, it might contain an endless loop)");
println(interpreter.getStackFrames().toString());
} catch (InterpreterException e) {
TestFailure failure = new TestFailure(f, interpreter.getStackFrames(), e.getMessage());
Expand Down Expand Up @@ -370,7 +370,7 @@ private class TestTimeOutException extends Throwable {

@Override
public String getMessage() {
return "test failed with timeout (This test did not complete in 20 seconds, it might contain an endless loop)";
return "test failed with timeout (This test did not complete in 300 seconds, it might contain an endless loop)";
}

@Override
Expand Down