Skip to content

Commit

Permalink
pkg/discovery: fix unit tests (#1940)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Pasquier <[email protected]>
  • Loading branch information
simonpasquier authored and squat committed Jan 6, 2020
1 parent 4d1cc62 commit f024461
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/discovery/cache/cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ func TestCacheAddresses(t *testing.T) {
}

got := c.Addresses()
sort.Slice(got, func(i, j int) bool {
return i < j
})
sort.Strings(got)
if !reflect.DeepEqual(got, expected) {
t.Errorf("expected %v, want %v", got, expected)
}
Expand Down

0 comments on commit f024461

Please sign in to comment.