Fix flaky tests (#89910)

This commit is contained in:
Gabriel MABILLE 2024-07-01 14:39:51 +02:00 committed by GitHub
parent 751e6739f3
commit 71d31397e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -856,7 +856,7 @@ func TestGetFolderUIDsForFilter(t *testing.T) {
result, err := loki.getFolderUIDsForFilter(context.Background(), models.HistoryQuery{OrgID: orgID, SignedInUser: usr})
assert.NoError(t, err)
assert.EqualValues(t, folders, result)
assert.ElementsMatch(t, folders, result)
assert.Len(t, ac.Calls, len(folders)+1)
assert.Equal(t, "CanReadAllRules", ac.Calls[0].MethodName)