Skip to content

Commit

Permalink
fix: capture step correctly into loop
Browse files Browse the repository at this point in the history
Resolves #480

Signed-off-by: Romain Beuque <556072+rbeuque74@users.noreply.github.com>
  • Loading branch information
rbeuque74 authored and rclsilver committed Oct 18, 2023
1 parent 938d3a4 commit b54181c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,9 @@ func runAvailableSteps(dbp zesty.DBProvider, modifiedSteps map[string]bool, res
// rebuild step dependency tree to include generated loop steps
res.BuildStepTree()
commit(dbp, res, nil)
go func() { stepChan <- s }()
go func(s *step.Step) {
stepChan <- s
}(s)
} else { // regular step
s.ResultValidate = jsonschema.Validator(s.Name, s.Schema)

Expand Down

0 comments on commit b54181c

Please sign in to comment.