@@ -77,7 +77,7 @@ func TestProcessSteps(t *testing.T) {
7777 badStepMsg := "bad step"
7878 assert .False (t , s .IsStepComplete ("bad" ), "check if 'bad' is 'COMPLETED' should be false" )
7979 err = s .RunStep ("bad" , func () error {
80- return fmt .Errorf (badStepMsg )
80+ return fmt .Errorf ("%s" , badStepMsg )
8181 })
8282 assert .Error (t , err )
8383 assert .False (t , s .IsStepComplete ("bad" ), "check if 'bad' is 'COMPLETED' should be false" )
@@ -86,7 +86,7 @@ func TestProcessSteps(t *testing.T) {
8686 // complete states are not executed again
8787 assert .True (t , s .IsStepComplete ("good" ), "check if 'good' is 'COMPLETED' should be true" )
8888 err = s .RunStep ("good" , func () error {
89- return fmt .Errorf ("will fail if executed" )
89+ return fmt .Errorf ("%s" , " will fail if executed" )
9090 })
9191 assert .NoError (t , err )
9292 assert .True (t , s .IsStepComplete ("good" ), "check if 'good' is 'COMPLETED' should be true" )
@@ -103,7 +103,7 @@ func TestProcessSteps(t *testing.T) {
103103 assert .NoError (t , err )
104104 assert .False (t , s .IsStepDestroyed ("destroy" ), "check if 'destroy' is 'DESTROYED' should be false" )
105105 err = s .RunDestroyStep ("destroy" , func () error {
106- return fmt .Errorf (badStepMsg )
106+ return fmt .Errorf ("%s" , badStepMsg )
107107 })
108108 assert .Error (t , err )
109109 assert .False (t , s .IsStepDestroyed ("destroy" ), "check if 'destroy' is 'DESTROYED' should be false" )
@@ -113,7 +113,7 @@ func TestProcessSteps(t *testing.T) {
113113 assert .NoError (t , err )
114114 assert .True (t , s .IsStepDestroyed ("gone" ), "check if 'gone' is 'DESTROYED' should be true" )
115115 err = s .RunDestroyStep ("gone" , func () error {
116- return fmt .Errorf ("will fail if executed" )
116+ return fmt .Errorf ("%s" , " will fail if executed" )
117117 })
118118 assert .NoError (t , err )
119119 assert .True (t , s .IsStepDestroyed ("gone" ), "check if 'gone' is 'DESTROYED' should be true" )
0 commit comments