e2e: fix perturbation of seed nodes (#6272)

This commit is contained in:
Callum Waters
2021-03-25 15:50:27 +01:00
committed by GitHub
parent 1d671a147f
commit 7d53cb232c
2 changed files with 7 additions and 0 deletions

View File

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

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