psql: close opened rows in tests (#6669)

This commit is contained in:
William Banfield
2021-07-07 11:37:42 -04:00
committed by GitHub
parent 96863decca
commit 3ccfb26137

View File

@@ -293,6 +293,7 @@ func verifyBlock(h int64) (bool, error) {
if err != nil {
return false, err
}
defer rows.Close()
if !rows.Next() {
return false, nil
@@ -308,6 +309,7 @@ func verifyBlock(h int64) (bool, error) {
if err != nil {
return false, err
}
defer rows.Close()
return rows.Next(), nil
}