Skip to content

Commit

Permalink
Fix CI by using assert.ElementsMatch (#2272)
Browse files Browse the repository at this point in the history
  • Loading branch information
mx-psi authored and pmatyjasek-sumo committed Apr 28, 2021
1 parent a1e3cc8 commit 05787d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exporter/datadogexporter/metadata/ec2/ec2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,5 @@ func TestHostInfoFromAttributes(t *testing.T) {

assert.Equal(t, hostInfo.InstanceID, testInstanceID)
assert.Equal(t, hostInfo.EC2Hostname, testIP)
assert.Equal(t, hostInfo.EC2Tags, []string{"tag1:val1", "tag2:val2"})
assert.ElementsMatch(t, hostInfo.EC2Tags, []string{"tag1:val1", "tag2:val2"})
}

0 comments on commit 05787d2

Please sign in to comment.