Commit 3003ac6
test(flare): cover archiveDir failing on a missing directory
Also delete the destination when archiving fails: the zip writer has
already created it, so a failure left a truncated archive behind that both
misleads whoever finds it and blocks the next flare of the same second
through O_EXCL. The pre-existing-file case is untouched, since that open
fails before anything is created.
Raises patch coverage on the changed lines from 80.0% to 85.0%, above the
80% gate.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 6b61b3c commit 3003ac6
2 files changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
565 | 565 | | |
566 | 566 | | |
567 | 567 | | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
568 | 574 | | |
569 | 575 | | |
570 | 576 | | |
| |||
0 commit comments