parent
ae9e204b3a
commit
ec795849ea
|
@ -37,13 +37,11 @@ func TestAPI_AgentMetrics(t *testing.T) {
|
|||
defer s.Stop()
|
||||
|
||||
agent := c.Agent()
|
||||
|
||||
retry.Run(t, func(r *retry.R) {
|
||||
metrics, err := agent.Metrics()
|
||||
if err != nil {
|
||||
t.Fatalf("err: %v", err)
|
||||
r.Fatalf("err: %v", err)
|
||||
}
|
||||
|
||||
retry.Run(t, func(r *retry.R) {
|
||||
for _, g := range metrics.Gauges {
|
||||
if g.Name == "consul.runtime.alloc_bytes" {
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue