BigW Consortium Gitlab

Commit 73f448e5 by Stan Hu

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
parent ca1e3823
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 }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment