Skip to content

Commit

Permalink
Merge branch 'master' into release/issue-43
Browse files Browse the repository at this point in the history
  • Loading branch information
Sinyaev Anton Yuryevich committed Nov 28, 2022
2 parents 9940a9e + ff31572 commit dc1fe20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/framework/core/common/step_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ func (ctx *stepCtx) WithNewStep(stepName string, step func(ctx provider.StepCtx)
defer ctx.currentStep.WithChild(newCtx.CurrentStep())
defer func() {
r := recover()
newCtx.WG().Wait()
newCtx.CurrentStep().Finish()
if r != nil {
ctxName := newCtx.ExecutionContextName()
Expand All @@ -172,7 +173,6 @@ func (ctx *stepCtx) WithNewAsyncStep(stepName string, step func(ctx provider.Ste
wg = ctx.parentStep.WG()
}
wg.Add(1)
defer wg.Wait()

go func() {
defer wg.Done()
Expand Down
1 change: 1 addition & 0 deletions pkg/framework/core/common/steps.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ func (c *Common) WithNewStep(stepName string, step func(ctx provider.StepCtx), p
defer c.Step(stCtx.CurrentStep())
defer func() {
r := recover()
stCtx.WG().Wait()
stCtx.CurrentStep().Finish()
if r != nil {
ctxName := c.ExecutionContext().GetName()
Expand Down

0 comments on commit dc1fe20

Please sign in to comment.