From da53c884cd977f22d71e3690cf9c0587c4e040ad Mon Sep 17 00:00:00 2001 From: Jack Lavigne Date: Fri, 19 Jan 2024 15:53:51 -0500 Subject: [PATCH] another check --- src/test/setup.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/setup.ts b/src/test/setup.ts index 2475c411..4ba10b44 100644 --- a/src/test/setup.ts +++ b/src/test/setup.ts @@ -253,7 +253,6 @@ let runLifecycle = true async function lifeCycle() { while (runLifecycle) { await new Promise(resolve => setTimeout(resolve, 1000 / drawRate)) - if (!runLifecycle) break const floats = new Uint8Array(new Float64Array([0, 0, 0, 1 / drawRate]).buffer) // First 4 64 bit doubles of sGaugeDrawData const ints = new Uint8Array(new Int32Array([0, 0, 0, 0]).buffer) // Last 4 32 bit ints of sGaugeDrawData @@ -292,4 +291,6 @@ void lifeCycle() // Cancel the lifeCycle after all tests have completed afterAll(() => { runLifecycle = false + // Wait 5 seconds for everything to wrap up + setTimeout(() => {}, 5000) })