Skip to content

Commit

Permalink
fixup! "fs: add AbortSignal support to watch"
Browse files Browse the repository at this point in the history
Co-authored-by: Darshan Sen <[email protected]>
  • Loading branch information
benjamingr and RaisinTen committed Feb 3, 2021
1 parent e83d879 commit 377f6e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-fs-watch-abort-signal.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ const fixtures = require('../common/fixtures');
const file = fixtures.path('empty.js');
const ac = new AbortController();
const { signal } = ac;
const wathcer = fs.watch(file, { signal });
wathcer.once('close', common.mustCall());
const watcher = fs.watch(file, { signal });
watcher.once('close', common.mustCall());
setImmediate(() => ac.abort());
}
{
Expand Down

0 comments on commit 377f6e9

Please sign in to comment.