Skip to content

Commit 23aaa18

Browse files
committed
fix(test): increase stress test delays for Windows CI compatibility
- Increase concurrent watcher start and wait delays to 300ms and 1500ms - Increase file stress test start and wait delays to 300ms and 1500ms
1 parent 7856034 commit 23aaa18

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/watcher.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -525,11 +525,11 @@ Deno.test('Watcher - stress test with 100 files', noLeaks, async () => {
525525
}
526526
})
527527
watcher.start()
528-
await delay(100)
528+
await delay(300)
529529
for (let i = 0; i < 100; i++) {
530530
Deno.writeTextFileSync(`${tmpDir}/s_${String(i).padStart(4, '0')}.txt`, `d_${i}`)
531531
}
532-
await delay(500)
532+
await delay(1500)
533533
watcher.dispose()
534534
assertEquals(events.length > 0, true)
535535
Deno.removeSync(tmpDir, { recursive: true })
@@ -560,11 +560,11 @@ Deno.test('Watcher - stress test with 5 concurrent watchers', noLeaks, async ()
560560
for (const watcher of watchers) {
561561
watcher.start()
562562
}
563-
await delay(200)
563+
await delay(300)
564564
for (let i = 0; i < 30; i++) {
565565
Deno.writeTextFileSync(`${tmpDir}/conc_${i}.txt`, `d_${i}`)
566566
}
567-
await delay(500)
567+
await delay(1500)
568568
for (const watcher of watchers) {
569569
watcher.dispose()
570570
}

0 commit comments

Comments
 (0)