Skip to content

Commit 3c4886c

Browse files
committed
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. Refs: nodejs#13577 (comment)
1 parent 5189857 commit 3c4886c

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)