Commit 9c4371d
committed
fix(test): add robust retry logic for Windows temp directory cleanup
Windows file handle timing requires more aggressive retry strategy.
Multiple tests were still failing with EPERM errors during cleanup.
- Increase retries to 5 attempts with 50ms initial delay + 100ms between retries
- Only apply retry logic on Windows platform
- Allows up to 550ms total for file handles to be released
- Fixes remaining EPERM errors in json.test.ts on Windows CI1 parent a544cd2 commit 9c4371d
1 file changed
+15
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
767 | 767 | | |
768 | 768 | | |
769 | 769 | | |
770 | | - | |
771 | | - | |
| 770 | + | |
772 | 771 | | |
773 | | - | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
774 | 786 | | |
775 | | - | |
776 | 787 | | |
777 | 788 | | |
778 | 789 | | |
| |||
0 commit comments