Commit a544cd2
committed
fix(test): add delay before cleanup on Windows to release file handles
Windows can hold file handles briefly after file operations complete, causing
EPERM errors when trying to delete the temp directory in afterEach.
- Add 100ms delay on Windows using node:timers/promises
- Ensures file handles are fully released before cleanup
- Fixes: EPERM: operation not permitted, rmdir in json.test.ts1 parent 7cd5124 commit a544cd2
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
766 | 767 | | |
767 | 768 | | |
768 | 769 | | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
769 | 775 | | |
770 | 776 | | |
771 | 777 | | |
| |||
0 commit comments