Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
petemoore committed Dec 8, 2023
1 parent 65fb0d6 commit 430bdbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workers/generic-worker/helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,12 @@ func ensureResolution(t *testing.T, taskID, state, reason string) {
t.Log("")
t.Log("")
t.Log("")
t.Fatal(LogText(t))
t.Log(LogText(t))
t.Log("")
t.Log("")
t.Log("")
if status.Status.Runs[0].State != state || status.Status.Runs[0].ReasonResolved != reason {
t.Logf("Expected task %v to resolve as '%v/%v' but resolved as '%v/%v'", taskID, state, reason, status.Status.Runs[0].State, status.Status.Runs[0].ReasonResolved)
t.Fatalf("Expected task %v to resolve as '%v/%v' but resolved as '%v/%v'", taskID, state, reason, status.Status.Runs[0].State, status.Status.Runs[0].ReasonResolved)
} else {
t.Logf("Task %v resolved as %v/%v as required.", taskID, status.Status.Runs[0].State, status.Status.Runs[0].ReasonResolved)
}
Expand Down

0 comments on commit 430bdbd

Please sign in to comment.