mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
fix flaky test by ignoring order of elements (#14611)
As far as I can tell, the order doesn't matter here, we wan to test that the slice has the elements with the higher `UnixTime` value
This commit is contained in:
parent
9ec2efb979
commit
45236e23d6
1 changed files with 1 additions and 1 deletions
|
|
@ -818,7 +818,7 @@ func TestGetMostRecentResults(t *testing.T) {
|
|||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
results := getMostRecentResults(tt.input)
|
||||
assert.Equal(t, tt.expected, results)
|
||||
assert.ElementsMatch(t, tt.expected, results)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue