Fix go vet issue
This commit is contained in:
@@ -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")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user