Skip to content

Commit

Permalink
Fix go vet issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jackc committed Jul 14, 2018
1 parent 20c02ac commit b8832c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions copy_from_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,10 @@ func TestConnCopyFromCopyFromSourceNextPanic(t *testing.T) {
conn.CopyFrom(pgx.Identifier{"foo"}, []string{"a"}, &nextPanicSource{})
}()

if !caughtPanic {
t.Error("expected panic but did not")
}

if conn.IsAlive() {
t.Error("panic should have killed conn")
}
Expand Down

0 comments on commit b8832c2

Please sign in to comment.