Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/gitlab/sidekiq_cluster_spec.rb')
-rw-r--r--spec/lib/gitlab/sidekiq_cluster_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/lib/gitlab/sidekiq_cluster_spec.rb b/spec/lib/gitlab/sidekiq_cluster_spec.rb
index 5517abe1010..3c6ea054968 100644
--- a/spec/lib/gitlab/sidekiq_cluster_spec.rb
+++ b/spec/lib/gitlab/sidekiq_cluster_spec.rb
@@ -123,6 +123,14 @@ RSpec.describe Gitlab::SidekiqCluster do
end
end
+ describe '.count_by_queue' do
+ it 'tallies the queue counts' do
+ queues = [%w(foo), %w(bar baz), %w(foo)]
+
+ expect(described_class.count_by_queue(queues)).to eq(%w(foo) => 2, %w(bar baz) => 1)
+ end
+ end
+
describe '.concurrency' do
using RSpec::Parameterized::TableSyntax