Browse Source

test: retry a bit more often

pull/3037/head
Frank Schroeder 8 years ago
parent
commit
24eec373de
No known key found for this signature in database
GPG Key ID: 4D65C6EAEC87DECD
  1. 3
      command/agent/testagent.go

3
command/agent/testagent.go

@ -130,7 +130,8 @@ func (a *TestAgent) Start() *TestAgent {
a.Agent = agent
a.Agent.LogOutput = a.LogOutput
a.Agent.LogWriter = a.LogWriter
retry.RunWith(retry.ThreeTimes(), &panicFailer{}, func(r *retry.R) {
tenTimes := &retry.Counter{Count: 10, Wait: 100 * time.Millisecond}
retry.RunWith(tenTimes, &panicFailer{}, func(r *retry.R) {
err := a.Agent.Start()
if err == nil {
return

Loading…
Cancel
Save