mirror of
https://github.com/jackc/pgx.git
synced 2025-05-29 02:32:41 +00:00
Enable test with updated error message
This commit is contained in:
parent
29bec2b97e
commit
793eb53017
@ -1889,7 +1889,6 @@ func TestConnQueryFunc(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestConnQueryFuncScanError(t *testing.T) {
|
func TestConnQueryFuncScanError(t *testing.T) {
|
||||||
t.Skip("TODO - unskip later in v5")
|
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
testWithAllQueryExecModes(t, func(t *testing.T, conn *pgx.Conn) {
|
testWithAllQueryExecModes(t, func(t *testing.T, conn *pgx.Conn) {
|
||||||
@ -1906,7 +1905,7 @@ func TestConnQueryFuncScanError(t *testing.T) {
|
|||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
require.EqualError(t, err, "can't scan into dest[0]: unable to assign to *int")
|
require.EqualError(t, err, "can't scan into dest[0]: cannot scan OID 25 in text format into *int")
|
||||||
require.Nil(t, ct)
|
require.Nil(t, ct)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user