summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2017-05-09 10:42:29 -0700
committerStan Hu <stanhu@gmail.com>2017-05-09 10:44:43 -0700
commit73f448e589f46865140412754a9c97df52dc16c7 (patch)
tree7198e7b3681f2ec38c2cc6e82b5f730b5616135a
parentca1e3823ca2fdd60cc14e82d67733e604269936c (diff)
downloadgitlab-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.rb2
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 }