Skip to content

Commit

Permalink
refactor: simplify test expression
Browse files Browse the repository at this point in the history
  • Loading branch information
KnisterPeter authored and github-actions committed May 24, 2022
1 parent 620515c commit 1cc37a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/runner/step_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ func TestIsStepEnabled(t *testing.T) {

// success()
step := createTestStep(t, "if: success()")
assertObject.True(isStepEnabled(context.Background(), step.getStepModel().If.Value, step))
assertObject.True(isStepEnabled(context.Background(), step.getIfExpression(stepStageMain), step))

step = createTestStep(t, "if: success()")
step.getRunContext().StepResults["a"] = &model.StepResult{
Expand Down

0 comments on commit 1cc37a4

Please sign in to comment.