Avoid windows shutdown bug (#900)

* Avoid windows shutdown bug with shutdown delay
* Use a separate concurrency group for integ-test-full
This commit is contained in:
Daz DeBoer
2026-03-23 09:43:17 -06:00
committed by GitHub
parent 2cab5e3c71
commit 25454f526a
7 changed files with 63 additions and 6 deletions

14
sources/src/force-exit.ts Normal file
View File

@@ -0,0 +1,14 @@
const WINDOWS_EXIT_DELAY_MS = 50
export function getForcedExitDelayMs(platform: NodeJS.Platform = process.platform): number {
return platform === 'win32' ? WINDOWS_EXIT_DELAY_MS : 0
}
export async function forceExit(platform: NodeJS.Platform = process.platform): Promise<never> {
const exitDelayMs = getForcedExitDelayMs(platform)
if (exitDelayMs > 0) {
await new Promise(resolve => setTimeout(resolve, exitDelayMs))
}
return process.exit()
}