Commit e803799
tests: defer rows.Close and check rows.Err in test helper
Ensure the cursor is closed even if rows.Scan triggers t.FailNow,
and surface any late transport errors after iteration.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 56574ad commit e803799
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
| 277 | + | |
277 | 278 | | |
278 | 279 | | |
279 | 280 | | |
280 | 281 | | |
281 | 282 | | |
282 | | - | |
| 283 | + | |
283 | 284 | | |
284 | 285 | | |
285 | 286 | | |
| |||
0 commit comments