Browse Source

e2e: change restart mechanism (#6883)

pull/6887/head
Sam Kleinman 3 years ago
committed by GitHub
parent
commit
9a0081f076
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      test/e2e/runner/perturb.go

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

@ -59,7 +59,11 @@ func PerturbNode(node *e2e.Node, perturbation e2e.Perturbation) (*rpctypes.Resul
case e2e.PerturbationRestart: case e2e.PerturbationRestart:
logger.Info(fmt.Sprintf("Restarting node %v...", node.Name)) logger.Info(fmt.Sprintf("Restarting node %v...", node.Name))
if err := execCompose(testnet.Dir, "restart", node.Name); err != nil {
if err := execCompose(testnet.Dir, "kill", "-s", "SIGTERM", node.Name); err != nil {
return nil, err
}
time.Sleep(10 * time.Second)
if err := execCompose(testnet.Dir, "start", node.Name); err != nil {
return nil, err return nil, err
} }


Loading…
Cancel
Save