Skip to content

Commit

Permalink
Update steps_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
apeabody authored Aug 22, 2024
1 parent 4f5e5b5 commit 5e85535
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpers/foundation-deployer/steps/steps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func TestProcessSteps(t *testing.T) {
badStepMsg := "bad step"
assert.False(t, s.IsStepComplete("bad"), "check if 'bad' is 'COMPLETED' should be false")
err = s.RunStep("bad", func() error {
return fmt.Errorf(badStepMsg)
return fmt.Errorf("%s", badStepMsg)
})
assert.Error(t, err)
assert.False(t, s.IsStepComplete("bad"), "check if 'bad' is 'COMPLETED' should be false")
Expand All @@ -86,7 +86,7 @@ func TestProcessSteps(t *testing.T) {
// complete states are not executed again
assert.True(t, s.IsStepComplete("good"), "check if 'good' is 'COMPLETED' should be true")
err = s.RunStep("good", func() error {
return fmt.Errorf("will fail if executed")
return fmt.Errorf("%s", "will fail if executed")
})
assert.NoError(t, err)
assert.True(t, s.IsStepComplete("good"), "check if 'good' is 'COMPLETED' should be true")
Expand Down

0 comments on commit 5e85535

Please sign in to comment.