| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6dbf708 commit f8a43f6
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -34,10 +34,12 @@ class WatchTestCase { | |||
| 34 | 34 | } | |
| 35 | 35 | } | |
| 36 | 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 | + | ||
| 37 | 40 | for (const fileName of [...this.files]) { | |
| 38 | 41 | await writeFile(this.filePath(fileName), Date.now() + fileName.repeat(1e4)); | |
| 39 | 42 | } | |
| 40 | - await setTimeout(common.platformTimeout(100)); | ||
| 41 | 43 | } | |
| 42 | 44 | } | |
| 43 | 45 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments