test: retry a bit more often

This commit is contained in:
Frank Schroeder 2017-05-22 13:24:31 +02:00
parent 6e7cf8c07e
commit 98ac791577
No known key found for this signature in database
GPG key ID: 4D65C6EAEC87DECD

View file

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