summaryrefslogtreecommitdiff
path: root/spec/workers
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-03-06 20:20:36 +0900
committerShinya Maeda <shinya@gitlab.com>2018-03-06 21:44:15 +0900
commit335bc0fec05d282e2e4daa0e4a1bcb82ddec0594 (patch)
tree33c70be018230136c144023629a84393505792c8 /spec/workers
parent7bbd5f6e31036a9ab6305b14eedbad25c5501648 (diff)
downloadgitlab-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.rb19
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