Browse Source

e2e: tweak sleep for pertubations (#6723)

This tweaks sleeps around pertubations, based on a theory that our
tests with "kill" pertubations restart the nodes fast enough the peers
haven't marked it down when it tries to reconnect. In my local test
runs, this clears out *most* of the test failures that I've seen,
except for one evidence-related test-harness problem (which should be
handled separately.)
pull/6726/head
Sam Kleinman 4 years ago
committed by GitHub
parent
commit
8addf99f90
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      test/e2e/runner/perturb.go

+ 2
- 1
test/e2e/runner/perturb.go View File

@ -16,7 +16,7 @@ func Perturb(testnet *e2e.Testnet) error {
if err != nil {
return err
}
time.Sleep(5 * time.Second) // give network some time to recover between each
time.Sleep(15 * time.Second) // give network some time to recover between each
}
}
return nil
@ -42,6 +42,7 @@ func PerturbNode(node *e2e.Node, perturbation e2e.Perturbation) (*rpctypes.Resul
if err := execCompose(testnet.Dir, "kill", "-s", "SIGKILL", node.Name); err != nil {
return nil, err
}
time.Sleep(2 * time.Second)
if err := execCompose(testnet.Dir, "start", node.Name); err != nil {
return nil, err
}


Loading…
Cancel
Save