Re-enable test
This commit is contained in:
+1
-2
@@ -369,7 +369,6 @@ func TestConnQueryCloseEarlyWithErrorOnWire(t *testing.T) {
|
|||||||
|
|
||||||
// Test that a connection stays valid when query results read incorrectly
|
// Test that a connection stays valid when query results read incorrectly
|
||||||
func TestConnQueryReadWrongTypeError(t *testing.T) {
|
func TestConnQueryReadWrongTypeError(t *testing.T) {
|
||||||
t.Skip("TODO - unskip later in v5")
|
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
conn := mustConnectString(t, os.Getenv("PGX_TEST_DATABASE"))
|
conn := mustConnectString(t, os.Getenv("PGX_TEST_DATABASE"))
|
||||||
@@ -397,7 +396,7 @@ func TestConnQueryReadWrongTypeError(t *testing.T) {
|
|||||||
t.Fatal("Expected Rows to have an error after an improper read but it didn't")
|
t.Fatal("Expected Rows to have an error after an improper read but it didn't")
|
||||||
}
|
}
|
||||||
|
|
||||||
if rows.Err().Error() != "can't scan into dest[0]: Can't convert OID 23 to time.Time" && !strings.Contains(rows.Err().Error(), "cannot assign") {
|
if rows.Err().Error() != "can't scan into dest[0]: cannot scan OID 23 in binary format into *time.Time" {
|
||||||
t.Fatalf("Expected different Rows.Err(): %v", rows.Err())
|
t.Fatalf("Expected different Rows.Err(): %v", rows.Err())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user