mirror of
https://github.com/gradle/actions.git
synced 2026-03-24 04:55:48 +08:00
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:
@@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user