Experimental Async Refreshes API (#34918)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user