Experimental Async Refreshes API (#34918)
This commit is contained in:
parent
825312d4b0
commit
319fbbbfac
11 changed files with 437 additions and 13 deletions
|
@ -65,7 +65,7 @@ RSpec.describe UserTrackingConcern do
|
|||
get :show
|
||||
|
||||
expect_updated_sign_in_at(user)
|
||||
expect(redis.get("account:#{user.account_id}:regeneration")).to eq 'true'
|
||||
expect(redis.exists?("account:#{user.account_id}:regeneration")).to be true
|
||||
expect(RegenerationWorker).to have_received(:perform_async)
|
||||
end
|
||||
|
||||
|
@ -80,7 +80,7 @@ RSpec.describe UserTrackingConcern do
|
|||
|
||||
expect_updated_sign_in_at(user)
|
||||
expect(redis.zcard(FeedManager.instance.key(:home, user.account_id))).to eq 3
|
||||
expect(redis.get("account:#{user.account_id}:regeneration")).to be_nil
|
||||
expect(redis.hget("account:#{user.account_id}:regeneration", 'status')).to eq 'finished'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue