Commit 5859366a authored by Robert Speicher's avatar Robert Speicher

Resolve spec/workers/every_sidekiq_worker_spec.rb

parent 9fa2d8ab
require 'spec_helper'
describe 'Every Sidekiq worker' do
DEPRECATED_QUEUES = %w(geo_base_scheduler geo_file_download geo_project_sync geo_repository_shard_sync).freeze
it 'does not use the default queue' do
expect(Gitlab::SidekiqConfig.workers.map(&:queue)).not_to include('default')
end
......@@ -18,17 +16,10 @@ describe 'Every Sidekiq worker' do
worker_queues << ActionMailer::DeliveryJob.new.queue_name
worker_queues << 'default'
<<<<<<< HEAD
missing_from_file = worker_queues - file_worker_queues - DEPRECATED_QUEUES
expect(missing_from_file).to be_empty, "expected #{missing_from_file.to_a.inspect} to be in Gitlab::SidekiqConfig::QUEUE_CONFIG_PATHS"
unncessarily_in_file = file_worker_queues - worker_queues - DEPRECATED_QUEUES
=======
missing_from_file = worker_queues - file_worker_queues
expect(missing_from_file).to be_empty, "expected #{missing_from_file.to_a.inspect} to be in Gitlab::SidekiqConfig::QUEUE_CONFIG_PATHS"
unncessarily_in_file = file_worker_queues - worker_queues
>>>>>>> upstream/master
expect(unncessarily_in_file).to be_empty, "expected #{unncessarily_in_file.to_a.inspect} not to be in Gitlab::SidekiqConfig::QUEUE_CONFIG_PATHS"
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment