Commit eb2eb5f
committed
fix(ipc): use safeDelete for cleaning up stub files
Replace fs.unlink with safeDelete for deleting IPC stub files in
cleanupIpcStubs and readIpcStub functions. The safeDelete function
automatically sets force: true for files in os.tmpdir(), which is
required for reliable deletion in CI environments.
IPC stub files are created in os.tmpdir()/.socket-ipc/{appName}/
which is outside the user's cwd, so using safeDelete with its
automatic force flag is the correct approach.
Fixes test failure: "should clean up stale stub files"1 parent 6f33b87 commit eb2eb5f
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
328 | 329 | | |
329 | 330 | | |
330 | 331 | | |
331 | | - | |
| 332 | + | |
332 | 333 | | |
333 | 334 | | |
334 | 335 | | |
| |||
394 | 395 | | |
395 | 396 | | |
396 | 397 | | |
397 | | - | |
| 398 | + | |
398 | 399 | | |
399 | 400 | | |
400 | 401 | | |
| |||
0 commit comments