mirror of
https://github.com/jackc/pgx.git
synced 2025-07-08 03:28:46 +00:00
Fix go vet issue
This commit is contained in:
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…
x
Reference in New Issue
Block a user