mirror of https://github.com/hashicorp/consul
test: stagger retry attempts of TestAgent.Start
parent
bdfed817ee
commit
f89ae9f7e7
|
@ -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…
Reference in New Issue