diff --git a/conn_pool_test.go b/conn_pool_test.go index 615faa03..9284a09f 100644 --- a/conn_pool_test.go +++ b/conn_pool_test.go @@ -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) } }