Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

Commit

Permalink
p2p/simulations: revert Simulation.Run from master
Browse files Browse the repository at this point in the history
  • Loading branch information
janos committed Jan 11, 2019
1 parent 5d5bcd6 commit dbd72a5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions p2p/simulations/simulation.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,9 @@ func (s *Simulation) Run(ctx context.Context, step *Step) (result *StepResult) {
defer stop()

// perform the action
if step.Action != nil {
if err := step.Action(ctx); err != nil {
result.Error = err
return
}
if err := step.Action(ctx); err != nil {
result.Error = err
return
}

// wait for all node expectations to either pass, error or timeout
Expand Down

0 comments on commit dbd72a5

Please sign in to comment.