Increase Windows exit delay from 50ms to 500ms

The 50ms delay was not sufficient to avoid libuv assertion errors
in CI environments. Increasing to 500ms to give pending I/O more
time to complete before process.exit() is called.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Daz DeBoer
2026-03-20 17:52:23 -06:00
parent d18d817ad0
commit ceb24d1d28
12 changed files with 1996 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ describe('forceExit', () => {
const exitSpy = jest.spyOn(process, 'exit').mockImplementation((() => undefined) as never)
const exitPromise = forceExit('win32')
await jest.advanceTimersByTimeAsync(49)
await jest.advanceTimersByTimeAsync(499)
expect(exitSpy).not.toHaveBeenCalled()
@@ -32,7 +32,7 @@ describe('forceExit', () => {
})
it('only delays on Windows', () => {
expect(getForcedExitDelayMs('win32')).toBe(50)
expect(getForcedExitDelayMs('win32')).toBe(500)
expect(getForcedExitDelayMs('linux')).toBe(0)
expect(getForcedExitDelayMs('darwin')).toBe(0)
})