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) })