Skip to content

Commit 4bcd152

Browse files
committed
add empty to unknown check
1 parent e68dbe3 commit 4bcd152

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

models/actions/run_job_status_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ func TestAggregateJobStatus(t *testing.T) {
3030
statuses []Status
3131
expected Status
3232
}{
33+
// empty, maybe it shouldn't happen in real world
34+
{[]Status{}, StatusUnknown},
35+
3336
// success with other status
3437
{[]Status{StatusSuccess}, StatusSuccess},
3538
{[]Status{StatusSuccess, StatusSkipped}, StatusSuccess}, // skipped doesn't affect success

0 commit comments

Comments
 (0)