Opens up the timing on the metrics test so it's less flaky.

This commit is contained in:
James Phillips 2017-11-10 13:03:31 -08:00
parent 6649c8090a
commit 3177c2b450
No known key found for this signature in database
GPG Key ID: 77183E682AC5FC11
1 changed files with 2 additions and 1 deletions

View File

@ -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)