Skip to content

Commit

Permalink
Use assert.ElementsMatch instead of assert.Equal (#1457)
Browse files Browse the repository at this point in the history
Signed-off-by: Matej Gera <matej.gera@coralogix.com>
  • Loading branch information
matej-g authored Feb 7, 2023
1 parent cbc5958 commit 3a8b546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/otel-allocator/server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func TestServer_TargetsHandler(t *testing.T) {
var itemResponse []*target.Item
err = json.Unmarshal(bodyBytes, &itemResponse)
assert.NoError(t, err)
assert.Equal(t, tt.want.items, itemResponse)
assert.ElementsMatch(t, tt.want.items, itemResponse)
})
}
}
Expand Down

0 comments on commit 3a8b546

Please sign in to comment.