mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 19:57:18 +08:00
DEV: Prevents rate limits for new feature checks on multisite (#12053)
This commit is contained in:
@ -8,4 +8,10 @@ RSpec.describe "Running Sidekiq Jobs in Multisite", type: :multisite do
|
||||
Jobs::DestroyOldDeletionStubs.new.perform({})
|
||||
end.to_not change { RailsMultisite::ConnectionManagement.current_db }
|
||||
end
|
||||
|
||||
it 'CheckNewFeatures should only hit the payload once' do
|
||||
# otherwise it will get rate-limited by meta
|
||||
DiscourseUpdates.expects(:new_features_payload).returns("{}").once
|
||||
Jobs::CheckNewFeatures.new.perform({})
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user