Repository navigation
Commit 78a9ddc
test: scope the dangling-symlink teardown
Three reviewers converged: the symlink's unlink ran only on the success
path — a failed assertion would leak it into the real data dir, where the
fail-safe under test deliberately keeps it forever. New `symlinkScoped`
helper (mirroring `writeFileStringScoped`) unlinks via a scope finalizer,
which runs regardless of assertion outcome.
Co-Authored-By: Claude Fable 5 <[email protected]>1 parent 439a145 commit 78a9ddc
2 files changed
Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | | - | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
266 | 269 | | |
267 | 270 | | |
268 | 271 | | |
| |||
275 | 278 | | |
276 | 279 | | |
277 | 280 | | |
278 | | - | |
279 | 281 | | |
280 | 282 | | |
281 | 283 | | |
| |||
0 commit comments