2
0

Fix ConnPool test

This commit is contained in:
Jack Christensen
2014-07-12 21:38:08 -05:00
parent aff5043df9
commit 88d5a25fc4
+1 -1
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)
}
}