Skip to content

Commit

Permalink
Use ReviewPlatform as tie breaker.
Browse files Browse the repository at this point in the history
Signed-off-by: Spencer Schrock <sschrock@google.com>
  • Loading branch information
spencerschrock committed Mar 22, 2023
1 parent 1d05beb commit 2eb88db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions checks/raw/code_review_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,9 @@ func Test_getChangesets(t *testing.T) {
changesets := getChangesets(tt.commits)
if !cmp.Equal(tt.expected, changesets,
cmpopts.SortSlices(func(x, y checker.Changeset) bool {
if x.RevisionID == y.RevisionID {
return x.ReviewPlatform < y.ReviewPlatform
}
return x.RevisionID < y.RevisionID
}),
cmpopts.SortSlices(func(x, y clients.Commit) bool {
Expand Down

0 comments on commit 2eb88db

Please sign in to comment.