Browse Source

psql: close opened rows in tests (#6669)

pull/6643/head
William Banfield 3 years ago
committed by GitHub
parent
commit
3ccfb26137
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      state/indexer/sink/psql/psql_test.go

+ 2
- 0
state/indexer/sink/psql/psql_test.go 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
}


Loading…
Cancel
Save