Skip to content

test,fs: delay unlink in test-regress-GH-4027.js

The sequential/test-regress-GH-4027 test is flaky on Windows CI with an increased system load, failing when the watched file is unlinked before the first state of the watched file is retrieved.

After increasing the delay before unlinking and calling setTimeout after watchFile, the flakiness stopped reproducing.

Fixes: https://github.com/nodejs/node/issues/13800

/cc @nodejs/testing

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

test

Merge request reports

Loading