Chore: Fix flaky test (#78309)

* Chore: Fix flaky test

* Found another one
pull/78314/head
Gabriel MABILLE 2 years ago committed by GitHub
parent f32f8a160e
commit 36fd9040af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      pkg/services/extsvcauth/oauthserver/oasimpl/aggregate_store_test.go
  2. 2
      pkg/services/extsvcauth/registry/service_test.go

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

@ -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)

Loading…
Cancel
Save