mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
functional-tester/tester: reduce retries in slow network
Now configure slow network cases with latency greater than election timeout. Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
3f7f3ab614
commit
e9d5c67b89
@ -263,7 +263,7 @@ func (f *failureUntilSnapshot) Inject(clus *Cluster) error {
|
||||
retries := int(snapshotCount) / 1000 * 3
|
||||
if v, ok := slowCases[f.FailureCase()]; v && ok {
|
||||
// slow network takes more retries
|
||||
retries *= 4
|
||||
retries *= 2
|
||||
}
|
||||
|
||||
for i := 0; i < retries; i++ {
|
||||
|
Loading…
x
Reference in New Issue
Block a user