Skip to content

Commit

Permalink
handler_test: Sort+Equal => ElementsMatch
Browse files Browse the repository at this point in the history
Co-authored-by: Sung Yoon Whang <[email protected]>
  • Loading branch information
abhinav and sywhang authored Oct 18, 2023
1 parent 6c18e78 commit f6f83a4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,7 @@ func TestIndexHandler_rangeOf(t *testing.T) {
for _, pkg := range tt.pkgs[start:end] {
got = append(got, pkg.Name)
}
sort.Strings(got)
sort.Strings(tt.want)

assert.Equal(t, tt.want, got)
assert.ElementsMatch(t, tt.want, got)
})
}
}
Expand Down

0 comments on commit f6f83a4

Please sign in to comment.