mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
p2p/simulations: revert Simulation.Run from master
https://github.com/ethersphere/go-ethereum/pull/1077/files#r247078904
This commit is contained in:
parent
a40801dead
commit
621e2b64ee
1 changed files with 3 additions and 5 deletions
|
|
@ -49,11 +49,9 @@ func (s *Simulation) Run(ctx context.Context, step *Step) (result *StepResult) {
|
||||||
defer stop()
|
defer stop()
|
||||||
|
|
||||||
// perform the action
|
// perform the action
|
||||||
if step.Action != nil {
|
if err := step.Action(ctx); err != nil {
|
||||||
if err := step.Action(ctx); err != nil {
|
result.Error = err
|
||||||
result.Error = err
|
return
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// wait for all node expectations to either pass, error or timeout
|
// wait for all node expectations to either pass, error or timeout
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue