Repository navigation
Commit e8dce4f
test(utils): pin both tied backup paths on the tie error
CodeRabbit's pre-merge walkthrough named lines 232-234 of the recovery spec: the two
error properties were only checked to contain the directory, and nothing pinned that
the message names the two backups it refused to choose between.
The set comparison replaces the two toContain(dir) rows so the assertion holds
whatever order readdir handed the tied pair in, and the two basename rows are the only
rows that fail when the basenames drop out of the message. Production content is
unchanged, so the counted-executable-line price does not move: 26 counted lines and 3
selectors against merge base d3d9cd4.
Controls: pointing secondBackupPath at the first tied path fails the set row (exit 1,
1 failed / 14 passed); replacing both basenames in the message with a fixed phrase fails
exactly the two basename rows (exit 1, 2 failed / 13 passed); restoring the production
blob gives 15 passed (exit 0).
Co-Authored-By: Claude <[email protected]>1 parent 7f4a40a commit e8dce4f
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
234 | | - | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
235 | 238 | | |
236 | 239 | | |
0 commit comments