mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-06 21:36:26 +00:00
e2e: fix perturbation of seed nodes (#6272)
This commit is contained in:
@@ -27,6 +27,7 @@ validator05 = 50
|
||||
[node.seed01]
|
||||
mode = "seed"
|
||||
seeds = ["seed02"]
|
||||
perturb = ["restart"]
|
||||
|
||||
[node.seed02]
|
||||
mode = "seed"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user