Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test: delay writing the files only on macOS
Refs: #60060
  • Loading branch information
lpinca committed Jan 26, 2026
commit 489a2663d73ea5d7f21fa73a9784353cdf7fb218
7 changes: 5 additions & 2 deletions test/parallel/test-fs-promises-watch-iterator.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@ class WatchTestCase {
}
}
async writeFiles() {
// Do the write with a delay to ensure that the OS is ready to notify us.
await setTimeout(common.platformTimeout(100));
if (common.isMacOS) {
// Do the write with a delay to ensure that the OS is ready to notify us.
// See https://github.com/nodejs/node/issues/52601.
await setTimeout(common.platformTimeout(100));
}

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