Skip to content

Commit

Permalink
close Rows
Browse files Browse the repository at this point in the history
  • Loading branch information
shueybubbles committed Oct 10, 2023
1 parent 6e3d0a9 commit 3309cf9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions alwaysencrypted_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,8 @@ func testProviderErrorHandling(t *testing.T, name string, provider aecmk.ColumnE
ctx, cancel := context.WithDeadline(context.Background(), time.Now().Add(1*time.Hour))
defer cancel()
rows, err := conn.QueryContext(ctx, sel)
if err != nil {
defer rows.Close()
}
defer rows.Close()

if assert.NoError(t, err, "Exec should return no error") {
if rows.Next() {
assert.Fail(t, "rows.Next should have failed")
Expand Down

0 comments on commit 3309cf9

Please sign in to comment.