You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit addresses the TODO in `pkg/sort/pipelinerun_test.go`
to add more test cases and improves the overall test coverage for
the sorting logic.
- Adds a new test function `TestPipelineRunSortByCompletionTime_missing`
to cover more scenarios for sorting by completion time:
- An empty list of PipelineRuns.
- PipelineRuns with the same completion time.
- A PipelineRun with a nil completion time.
- Fixes a failing test case in `TestPipelineRunSortByStartTime` by
correctly setting up the test data for a PipelineRun that has not
started.
- Removes the now-obsolete TODO comment.
Fixes#2196
Signed-off-by: Chmouel Boudjnah <[email protected]>
0 commit comments