Fix ConnPool test

scan-io
Jack Christensen 2014-07-12 21:38:08 -05:00
parent aff5043df9
commit 88d5a25fc4
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}
}