From 66ca49962e709fb34cb9fda2c367f478c9510144 Mon Sep 17 00:00:00 2001 From: James Phillips Date: Fri, 10 Nov 2017 13:03:31 -0800 Subject: [PATCH] Opens up the timing on the metrics test so it's less flaky. --- api/agent_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/agent_test.go b/api/agent_test.go index 3787b3642..6a4b76df5 100644 --- a/api/agent_test.go +++ b/api/agent_test.go @@ -37,7 +37,8 @@ func TestAPI_AgentMetrics(t *testing.T) { defer s.Stop() agent := c.Agent() - retry.Run(t, func(r *retry.R) { + timer := &retry.Timer{Timeout: 10 * time.Second, Wait: 500 * time.Millisecond} + retry.RunWith(timer, t, func(r *retry.R) { metrics, err := agent.Metrics() if err != nil { r.Fatalf("err: %v", err)