mirror of
https://github.com/status-im/consul.git
synced 2025-01-22 11:40:06 +00:00
test: stagger retry attempts of TestAgent.Start
This commit is contained in:
parent
bdfed817ee
commit
f89ae9f7e7
@ -161,7 +161,9 @@ func (a *TestAgent) Start() *TestAgent {
|
|||||||
runtime.Goexit()
|
runtime.Goexit()
|
||||||
} else {
|
} else {
|
||||||
agent.Shutdown()
|
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 {
|
if !a.NoInitialSync {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user