Opens up the timing on the metrics test so it's less flaky.
This commit is contained in:
parent
75d656a3c2
commit
66ca49962e
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue