mirror of https://github.com/jackc/pgx.git
Update test to work on Windows
parent
3761c6335e
commit
b06d71f684
|
@ -189,8 +189,8 @@ func TestConnectWithConnectionRefused(t *testing.T) {
|
||||||
bad.Port = 1
|
bad.Port = 1
|
||||||
|
|
||||||
_, err := pgx.Connect(bad)
|
_, err := pgx.Connect(bad)
|
||||||
if !strings.Contains(err.Error(), "connection refused") {
|
if err == nil {
|
||||||
t.Fatal("Unable to establish connection: " + err.Error())
|
t.Fatal("Expected error establishing connection to bad port")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue