We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f941fc commit dfdbb39Copy full SHA for dfdbb39
test/parallel/test-fs-promises-watch-iterator.js
@@ -34,10 +34,12 @@ class WatchTestCase {
34
}
35
36
async writeFiles() {
37
+ // Do the write with a delay to ensure that the OS is ready to notify us.
38
+ await setTimeout(common.platformTimeout(100));
39
+
40
for (const fileName of [...this.files]) {
41
await writeFile(this.filePath(fileName), Date.now() + fileName.repeat(1e4));
42
- await setTimeout(common.platformTimeout(100));
43
44
45
0 commit comments