Chore: Fix flaky test (#78309)

* Chore: Fix flaky test

* Found another one
This commit is contained in:
Gabriel MABILLE 2023-11-17 10:38:57 +01:00 committed by GitHub
parent f32f8a160e
commit 36fd9040af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ func TestOAuth2ServiceImpl_GetPublicKeyScopes(t *testing.T) {
return
}
require.EqualValues(t, tc.expectedScopes, scopes)
require.ElementsMatch(t, tc.expectedScopes, scopes)
})
}
}

View File

@ -113,7 +113,7 @@ func TestRegistry_GetExternalServiceNames(t *testing.T) {
names, err := env.r.GetExternalServiceNames(context.Background())
require.NoError(t, err)
require.EqualValues(t, tt.want, names)
require.ElementsMatch(t, tt.want, names)
env.oauthReg.AssertExpectations(t)
env.saReg.AssertExpectations(t)