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:
@@ -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)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user