intentionally slowdown entity tests
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit

This commit is contained in:
austin 2025-05-15 09:51:31 -04:00
parent 3962b7e5c6
commit 881ff98308
2 changed files with 5 additions and 0 deletions

View File

@ -1794,6 +1794,7 @@ Work to unify opengl error reporting
Explicitly scream if trying to bind a shader that is invalid Explicitly scream if trying to bind a shader that is invalid
Support for freeing shaders Support for freeing shaders
Utilities to free all of a type of resource Utilities to free all of a type of resource
Slowdown entity tests to prevent VSCode from exploding when running tests

View File

@ -1,5 +1,7 @@
package electrosphere.test.template.extensions; package electrosphere.test.template.extensions;
import java.util.concurrent.TimeUnit;
import org.junit.jupiter.api.extension.AfterEachCallback; import org.junit.jupiter.api.extension.AfterEachCallback;
import org.junit.jupiter.api.extension.BeforeEachCallback; import org.junit.jupiter.api.extension.BeforeEachCallback;
import org.junit.jupiter.api.extension.ExtensionContext; import org.junit.jupiter.api.extension.ExtensionContext;
@ -24,6 +26,8 @@ public class EntityExtension implements BeforeEachCallback, AfterEachCallback {
@Override @Override
public void afterEach(ExtensionContext context) throws Exception { public void afterEach(ExtensionContext context) throws Exception {
Main.shutdown(); Main.shutdown();
//sleep to keep the ide from exploding when running tests manually
TimeUnit.MILLISECONDS.sleep(1);
} }
} }