Skip to content

Commit

Permalink
timeout on 100 sec
Browse files Browse the repository at this point in the history
  • Loading branch information
Baunsgaard committed Dec 6, 2023
1 parent 58c0484 commit 4df00b9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/test/java/org/apache/sysds/test/AutomatedTestBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,14 @@ public abstract class AutomatedTestBase {
public static final double GPU_TOLERANCE = 1e-9;

// ms wait time
public static final int FED_WORKER_WAIT = 1000;
public static final int FED_WORKER_WAIT = 1500;
public static final int FED_MONITOR_WAIT = 10000;
public static final int FED_WORKER_WAIT_S = 50;


// The timeout for a test to fail. all tests must execute in less than this time.
public static final int TEST_TIMEOUT = 100;

// With OpenJDK 8u242 on Windows, the new changes in JDK are not allowing
// to set the native library paths internally thus breaking the code.
// That is why, these static assignments to java.library.path and hadoop.home.dir
Expand Down Expand Up @@ -1442,13 +1445,12 @@ protected ByteArrayOutputStream runTest(boolean newWay, boolean exceptionExpecte
try{
return executor.submit(() ->
runTestWithTimeout(newWay,exceptionExpected,expectedException,errMessage, maxSparkInst))//
.get(1000, TimeUnit.SECONDS);
.get(TEST_TIMEOUT, TimeUnit.SECONDS);
}
catch(TimeoutException e){
throw new RuntimeException("Our tests should run faster than 1000 sec each",e);
}
catch(Exception e){
fail(e.getMessage());
throw new RuntimeException(e);
}
finally{
Expand Down

0 comments on commit 4df00b9

Please sign in to comment.