提交 73f448e5 编写于 作者: S 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
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册