mirror of
https://github.com/jackc/pgx.git
synced 2025-05-25 08:53:53 +00:00
Tweak error reporting on TestFatalRxError
This commit is contained in:
parent
f12ae84ac5
commit
d88242b0ca
@ -1198,7 +1198,7 @@ func TestFatalRxError(t *testing.T) {
|
||||
var n int32
|
||||
var s string
|
||||
err := conn.QueryRow("select 1::int4, pg_sleep(10)::varchar").Scan(&n, &s)
|
||||
if err, ok := err.(pgx.PgError); !ok || err.Severity != "FATAL" {
|
||||
if pgErr, ok := err.(pgx.PgError); !ok || pgErr.Severity != "FATAL" {
|
||||
t.Fatalf("Expected QueryRow Scan to return fatal PgError, but instead received %v", err)
|
||||
}
|
||||
}()
|
||||
|
Loading…
x
Reference in New Issue
Block a user