Skip to content

Commit 3306fd1

Browse files
Trottaddaleax
authored andcommitted
test: accommodate AIX by watching file
Watching directories has limited support on AIX. This is documented. Watch a file in test/async-hooks/test-fseventwrap.js to accommodate AIX. PR-URL: #13766 Ref: #13577 (comment) Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 2816677 commit 3306fd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/async-hooks/test-fseventwrap.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
2-
32
require('../common');
3+
44
const assert = require('assert');
55
const initHooks = require('./init-hooks');
66
const tick = require('./tick');
@@ -10,7 +10,7 @@ const fs = require('fs');
1010
const hooks = initHooks();
1111

1212
hooks.enable();
13-
const watcher = fs.watch(__dirname, onwatcherChanged);
13+
const watcher = fs.watch(__filename, onwatcherChanged);
1414
function onwatcherChanged() { }
1515

1616
watcher.close();

0 commit comments

Comments
 (0)