fs: fixes recursive fs.watch crash on Linux when deleting files #49412
Annotations
2 errors
Test:
test/parallel/test-fs-watch-recursive-delete.js#L16
--- stderr ---
node:assert:126
throw new AssertionError(obj);
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
false !== true
at FSWatcher.<anonymous> (/Users/runner/work/node/node/test/parallel/test-fs-watch-recursive-delete.js:16:10)
at FSWatcher.<anonymous> (/Users/runner/work/node/node/test/common/index.js:473:15)
at FSWatcher.emit (node:events:520:28)
at FSWatcher._handle.onchange (node:internal/fs/watchers:215:12) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: false,
expected: true,
operator: 'strictEqual'
}
Node.js v22.0.0-pre
Command: out/Release/node --test-reporter=spec --test-reporter-destination=stdout --test-reporter=./tools/github_reporter/index.js --test-reporter-destination=stdout /Users/runner/work/node/node/test/parallel/test-fs-watch-recursive-delete.js
|
Test
Process completed with exit code 2.
|
Loading