increase test flush timeout to fix failed tests
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit

This commit is contained in:
austin 2025-03-25 21:24:13 -04:00
parent cdc37a70f6
commit 124a96068c
2 changed files with 7 additions and 2 deletions

View File

@ -19,7 +19,7 @@ public class EngineInit {
/** /**
* Max time in milliseconds to wait while flushing * Max time in milliseconds to wait while flushing
*/ */
public static final int MAX_TIME_TO_WAIT = 3000; public static final int MAX_TIME_TO_WAIT = 15000;
/** /**
* Initializes the engine * Initializes the engine

View File

@ -104,13 +104,18 @@ public class TestEngineUtils {
e.printStackTrace(); e.printStackTrace();
} }
frames++; frames++;
if(frames > EngineInit.MAX_FRAMES_TO_WAIT && System.currentTimeMillis() - startTime > EngineInit.MAX_TIME_TO_WAIT){ if(
frames > EngineInit.MAX_FRAMES_TO_WAIT &&
System.currentTimeMillis() - startTime > EngineInit.MAX_TIME_TO_WAIT
){
String errorMessage = "Failed to setup connected test scene!\n" + String errorMessage = "Failed to setup connected test scene!\n" +
"Still running threads are:\n" "Still running threads are:\n"
; ;
for(LoadingThread thread : Globals.threadManager.getLoadingThreads()){ for(LoadingThread thread : Globals.threadManager.getLoadingThreads()){
errorMessage = errorMessage + thread.getType() + "\n"; errorMessage = errorMessage + thread.getType() + "\n";
} }
errorMessage = errorMessage + "frames: " + frames + "\n";
errorMessage = errorMessage + "Time elapsed: " + (System.currentTimeMillis() - startTime) + "\n";
Assertions.fail(errorMessage); Assertions.fail(errorMessage);
} }
} }