Experimental Async Refreshes API (#34918)

This commit is contained in:
David Roetzel 2025-06-12 16:54:00 +02:00 committed by GitHub
commit 319fbbbfac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 437 additions and 13 deletions

View file

@ -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