Commit cb34775
committed
fix(process-lock): fix test race condition in beforeEach
Root cause: Async cleanup in beforeEach was deleting testDir after
creating it, causing ENOENT errors. Fixed by removing async cleanup
from beforeEach and relying on:
- Unique directory names with hrtime for isolation
- Synchronous directory creation in beforeEach
- Async cleanup in afterEach
- Explicit cleanup before manual mkdir in individual tests
All 19 tests now pass locally.1 parent 8eacea9 commit cb34775
1 file changed
Lines changed: 1 addition & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 29 | | |
37 | 30 | | |
38 | 31 | | |
| |||
0 commit comments