Skip to content

Commit 489a266

Browse files
committed
test: delay writing the files only on macOS
Refs: #60060
1 parent 5e104c8 commit 489a266

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/parallel/test-fs-promises-watch-iterator.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,11 @@ class WatchTestCase {
3535
}
3636
}
3737
async writeFiles() {
38-
// Do the write with a delay to ensure that the OS is ready to notify us.
39-
await setTimeout(common.platformTimeout(100));
38+
if (common.isMacOS) {
39+
// Do the write with a delay to ensure that the OS is ready to notify us.
40+
// See https://github.com/nodejs/node/issues/52601.
41+
await setTimeout(common.platformTimeout(100));
42+
}
4043

4144
for (const fileName of [...this.files]) {
4245
await writeFile(this.filePath(fileName), Date.now() + fileName.repeat(1e4));

0 commit comments

Comments
 (0)