diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-03-06 20:20:36 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-03-06 21:44:15 +0900 |
commit | 335bc0fec05d282e2e4daa0e4a1bcb82ddec0594 (patch) | |
tree | 33c70be018230136c144023629a84393505792c8 /spec/workers | |
parent | 7bbd5f6e31036a9ab6305b14eedbad25c5501648 (diff) | |
download | gitlab-ce-335bc0fec05d282e2e4daa0e4a1bcb82ddec0594.tar.gz |
Integrate two workers into one ArchiveTraceWorker with pipeline_background queue. This queue takes loqer precedence than pipeline_default.
Diffstat (limited to 'spec/workers')
-rw-r--r-- | spec/workers/concerns/pipeline_background_queue_spec.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/spec/workers/concerns/pipeline_background_queue_spec.rb b/spec/workers/concerns/pipeline_background_queue_spec.rb new file mode 100644 index 00000000000..e1ee85ae238 --- /dev/null +++ b/spec/workers/concerns/pipeline_background_queue_spec.rb @@ -0,0 +1,19 @@ +require 'spec_helper' + +describe PipelineBackgroundQueue do + let(:worker) do + Class.new do + def self.name + 'DummyWorker' + end + + include ApplicationWorker + include PipelineBackgroundQueue + end + end + + it 'sets a default object storage queue automatically' do + expect(worker.sidekiq_options['queue']) + .to eq 'object_storage:dummy' + end +end |