Browse Source

e2e: fix perturbation of seed nodes (#6272)

pull/6275/head
Callum Waters 4 years ago
committed by GitHub
parent
commit
7d53cb232c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions
  1. +1
    -0
      test/e2e/networks/ci.toml
  2. +6
    -0
      test/e2e/runner/perturb.go

+ 1
- 0
test/e2e/networks/ci.toml View File

@ -27,6 +27,7 @@ validator05 = 50
[node.seed01]
mode = "seed"
seeds = ["seed02"]
perturb = ["restart"]
[node.seed02]
mode = "seed"


+ 6
- 0
test/e2e/runner/perturb.go View File

@ -66,6 +66,12 @@ func PerturbNode(node *e2e.Node, perturbation e2e.Perturbation) (*rpctypes.Resul
return nil, fmt.Errorf("unexpected perturbation %q", perturbation)
}
// Seed nodes do not have an RPC endpoint exposed so we cannot assert that
// the node recovered. All we can do is hope.
if node.Mode == e2e.ModeSeed {
return nil, nil
}
status, err := waitForNode(node, 0, 10*time.Second)
if err != nil {
return nil, err


Loading…
Cancel
Save