mirror of https://github.com/jackc/pgx.git
Fix ConnPool test
parent
aff5043df9
commit
88d5a25fc4
|
@ -62,7 +62,7 @@ func TestNewConnPoolDefaultsTo5MaxConnections(t *testing.T) {
|
|||
}
|
||||
defer pool.Close()
|
||||
|
||||
if n := pool.MaxConnectionCount(); n != 5 {
|
||||
if n := pool.Stat().MaxConnections; n != 5 {
|
||||
t.Fatalf("Expected pool to default to 5 max connections, but it was %d", n)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue