Skip to content

Commit

Permalink
Opens up the timing on the metrics test so it's less flaky.
Browse files Browse the repository at this point in the history
  • Loading branch information
slackpad committed Nov 10, 2017
1 parent 6649c80 commit 3177c2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3177c2b

Please sign in to comment.