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