Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6fbb0b7

Browse filesBrowse files
lpincaaduh95
authored andcommitted
test: delay writing the files only on macOS
Refs: #60060 PR-URL: #61532 Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com>
1 parent 150910d commit 6fbb0b7
Copy full SHA for 6fbb0b7

1 file changed

+5-2Lines changed: 5 additions & 2 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: test/parallel/test-fs-promises-watch-iterator.js
+5-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.