Skip to content

Commit

Permalink
IWF-472: Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
lwolczynski committed Jan 28, 2025
1 parent 4c447d5 commit 38bac14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions integ/helpers/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package helpers
import "testing"

func FailTestWithError(error error, t *testing.T) {
t.Errorf("%s - Test failed with error: %v", t.Name(), error)
t.Fatalf("%s - Test failed with error: %v", t.Name(), error)
}

func FailTestWithErrorMessage(errorMessage string, t *testing.T) {
t.Errorf("%s - Test failed with error: %s", t.Name(), errorMessage)
t.Fatalf("%s - Test failed with error: %s", t.Name(), errorMessage)
}
4 changes: 2 additions & 2 deletions integ/workflow/wf_state_api_timeout/routers.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ func (h *handler) ApiV1WorkflowStateStart(c *gin.Context, t *testing.T) {
return
}
}
fmt.Println(
fmt.Sprintf("WorkflowType: %v", req.GetWorkflowType()),
fmt.Printf(
"WorkflowType: %v", req.GetWorkflowType(),
)
helpers.FailTestWithErrorMessage("should not get here", t)
}
Expand Down

0 comments on commit 38bac14

Please sign in to comment.