mirror of https://github.com/jackc/pgx.git
Fix go vet issue
parent
20c02acd63
commit
b8832c26d4
|
@ -464,6 +464,10 @@ func TestConnCopyFromCopyFromSourceNextPanic(t *testing.T) {
|
||||||
conn.CopyFrom(pgx.Identifier{"foo"}, []string{"a"}, &nextPanicSource{})
|
conn.CopyFrom(pgx.Identifier{"foo"}, []string{"a"}, &nextPanicSource{})
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
if !caughtPanic {
|
||||||
|
t.Error("expected panic but did not")
|
||||||
|
}
|
||||||
|
|
||||||
if conn.IsAlive() {
|
if conn.IsAlive() {
|
||||||
t.Error("panic should have killed conn")
|
t.Error("panic should have killed conn")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue