Procházet zdrojové kódy

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>
Gyuho Lee před 7 roky
rodič
revize
e9d5c67b89
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      tools/functional-tester/tester/failure.go

+ 1 - 1
tools/functional-tester/tester/failure.go

@@ -263,7 +263,7 @@ func (f *failureUntilSnapshot) Inject(clus *Cluster) error {
 	retries := int(snapshotCount) / 1000 * 3
 	retries := int(snapshotCount) / 1000 * 3
 	if v, ok := slowCases[f.FailureCase()]; v && ok {
 	if v, ok := slowCases[f.FailureCase()]; v && ok {
 		// slow network takes more retries
 		// slow network takes more retries
-		retries *= 4
+		retries *= 2
 	}
 	}
 
 
 	for i := 0; i < retries; i++ {
 	for i := 0; i < retries; i++ {