Skip to content

Commit 69c1442

Browse files
committed
test(pipelineascode): use CompletedStatus constant instead of literal in test switch
Addresses review nit on PR #2904: use the existing CompletedStatus constant for the completed case, matching the queuedStatus constant already used in the same switch. Signed-off-by: Pujitha Paladugu <10557236+pujitha24@users.noreply.github.com>
1 parent a554615 commit 69c1442

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/pipelineascode/pipelineascode_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func testSetupCommonGhReplies(t *testing.T, mux *http.ServeMux, runevent info.Ev
9494
// testcases that expect that outcome opt into checking the "queued" status
9595
// text instead via queuedStatusText.
9696
switch created.GetStatus() {
97-
case "completed":
97+
case CompletedStatus:
9898
assert.Equal(t, created.GetConclusion(), finalStatus, "we got the status `%s` but we should have get the status `%s`", created.GetConclusion(), finalStatus)
9999
assert.Assert(t, strings.Contains(created.GetOutput().GetText(), finalStatusText),
100100
"GetStatus/CheckRun %s != %s", created.GetOutput().GetText(), finalStatusText)

0 commit comments

Comments
 (0)