Commit 3876d41
committed
fix(assets): drain watcher teardown before deleting dir on windows
Closing chokidar/fs.watch doesn't guarantee libuv has retired the
outstanding ReadDirectoryChangesW request. Every assets test's
afterEach closes the watcher and immediately rm -rf's the same temp
directory, and on Windows CI that race trips a hard libuv assertion
(fs-event.c:72), crashing the vitest worker fork outright.1 parent 228802b commit 3876d41
1 file changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
33 | 47 | | |
0 commit comments