package dbx_test import ( "testing" "git.codelab.vc/pkg/dbx/dbxtest" ) func TestStats(t *testing.T) { c := dbxtest.NewTestCluster(t) ps := c.Stats() if ps.Nodes == nil { t.Fatal("Nodes map is nil") } if _, ok := ps.Nodes["test-master"]; !ok { t.Error("expected test-master in Nodes") } if ps.MaxConns <= 0 { t.Errorf("expected MaxConns > 0, got %d", ps.MaxConns) } }