Commit 199dec9
committed
test(ipc): simplify stale file cleanup test logic
The test was allowing two success paths:
1. File is deleted (expected)
2. File exists but with different timestamp (recreated by another process)
However, if deletion silently failed (error caught in cleanupIpcStubs),
the file would exist with the same timestamp causing test failure.
Changes:
- Remove complex "recreated file" logic
- Add 100ms delay after cleanup for slow CI environments
- Assert file is deleted - fail clearly if not
Fixes CI flakiness where async deletion wasn't completing in time.1 parent bc0630c commit 199dec9
1 file changed
+5
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
217 | 220 | | |
218 | 221 | | |
219 | 222 | | |
220 | 223 | | |
221 | 224 | | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
| 225 | + | |
230 | 226 | | |
231 | 227 | | |
232 | 228 | | |
| |||
0 commit comments