test: stagger retry attempts of TestAgent.Start

pull/3095/head
Frank Schroeder 8 years ago
parent bdfed817ee
commit f89ae9f7e7
No known key found for this signature in database
GPG Key ID: 4D65C6EAEC87DECD

@ -161,7 +161,9 @@ func (a *TestAgent) Start() *TestAgent {
runtime.Goexit()
} else {
agent.Shutdown()
fmt.Println(id, a.Name, "retrying")
wait := time.Duration(rand.Int31n(2000)) * time.Millisecond
fmt.Println(id, a.Name, "retrying in", wait)
time.Sleep(wait)
}
}
if !a.NoInitialSync {

Loading…
Cancel
Save