Skip to content

Commit

Permalink
Fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
fsouza committed Mar 5, 2022
1 parent 25fe06d commit 770dff2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions map_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ func TestEntries(t *testing.T) {

r1 := Entries[string, int](map[string]int{"foo": 1, "bar": 2})

sort.Slice(r1, func(i, j int) bool {
return r1[i].Value < r1[j].Value
})
is.EqualValues(r1, []Entry[string, int]{
{
Key: "foo",
Expand Down

0 comments on commit 770dff2

Please sign in to comment.