Commit e581b9f
authored
test(store): drop double-close on raw sqlite handle in legacy-shape test (#68)
* test(store): remove double-close on raw sqlite handle in legacy-shape test
The previous patch (#67) used both `defer db.Close()` and an explicit
`db.Close()` to release the writer before opening the reader. That
double-closes the handle and can mask the inner-Close error. Drop the
defer; the explicit close is required (and now error-checked) so the
reader sees a quiesced file.
Per Copilot review on #67 (landed after merge).
* test(store): t.Cleanup as failure-path Close safety net1 parent 5a92624 commit e581b9f
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
556 | 556 | | |
557 | 557 | | |
558 | 558 | | |
559 | | - | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
560 | 566 | | |
561 | 567 | | |
562 | 568 | | |
| |||
591 | 597 | | |
592 | 598 | | |
593 | 599 | | |
594 | | - | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
595 | 603 | | |
596 | 604 | | |
597 | 605 | | |
| |||
0 commit comments