diff options
author | Stan Hu <stanhu@gmail.com> | 2017-05-09 10:42:29 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2017-05-09 10:44:43 -0700 |
commit | 73f448e589f46865140412754a9c97df52dc16c7 (patch) | |
tree | 7198e7b3681f2ec38c2cc6e82b5f730b5616135a | |
parent | ca1e3823ca2fdd60cc14e82d67733e604269936c (diff) | |
download | gitlab-ce-73f448e589f46865140412754a9c97df52dc16c7.tar.gz |
Fix OpenID spec failure that assumed current_sign_in_at would be set
Due to 6a915d6f, the `current_sign_in_at` may not actually be set due
to an ExclusiveLease in other jobs. To fix this spec, manually set
the value in the setup.
Closes #32041
-rw-r--r-- | spec/requests/openid_connect_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/requests/openid_connect_spec.rb b/spec/requests/openid_connect_spec.rb index a4f85c22943..132c983fb0d 100644 --- a/spec/requests/openid_connect_spec.rb +++ b/spec/requests/openid_connect_spec.rb @@ -1,7 +1,7 @@ require 'spec_helper' describe 'OpenID Connect requests' do - let(:user) { create :user } + let(:user) { create(:user, current_sign_in_at: Time.now) } let(:access_grant) { create :oauth_access_grant, application: application, resource_owner_id: user.id } let(:access_token) { create :oauth_access_token, application: application, resource_owner_id: user.id } |