Skip to content

Commit 4265b59

Browse files
committed
windows syncDir
1 parent d692795 commit 4265b59

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

test/reader-watch.test.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,10 +296,13 @@ async function concat(stream) {
296296

297297
/** @param {string} dirPath */
298298
async function syncDir(dirPath) {
299+
if (isWin) {
300+
return setTimeout(200)
301+
}
299302
const dh = await fs.promises.open(dirPath, 'r')
300303
await dh.sync()
301304
await dh.close()
302-
await setTimeout(isWin ? 50 : 10)
305+
await setTimeout(10)
303306
}
304307

305308
/** @param {string} dirPath */

0 commit comments

Comments
 (0)