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
path: root/spec/bin
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-03-21 00:09:17 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-21 00:09:17 +0300
commit68f1860e6f1f9e8441c434f4e62238c359ce8c7c (patch)
treed12eab92b88fdcd0bdcea4586ec5352898b16e6c /spec/bin
parent1af0d38d9c5a88d7123283c714857dc4da991371 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/bin')
-rw-r--r--spec/bin/sidekiq_cluster_spec.rb13
1 files changed, 7 insertions, 6 deletions
diff --git a/spec/bin/sidekiq_cluster_spec.rb b/spec/bin/sidekiq_cluster_spec.rb
index 67de55ad9f5..c0240214a6b 100644
--- a/spec/bin/sidekiq_cluster_spec.rb
+++ b/spec/bin/sidekiq_cluster_spec.rb
@@ -1,6 +1,7 @@
# frozen_string_literal: true
require 'spec_helper'
+require 'shellwords'
describe 'bin/sidekiq-cluster' do
using RSpec::Parameterized::TableSyntax
@@ -18,9 +19,9 @@ describe 'bin/sidekiq-cluster' do
output, status = Gitlab::Popen.popen(cmd, Rails.root.to_s)
expect(status).to be(0)
- expect(output).to include('"bundle", "exec", "sidekiq"')
- expect(output).to include(included)
- expect(output).not_to include(excluded)
+ expect(output).to include('bundle exec sidekiq')
+ expect(Shellwords.split(output)).to include(included)
+ expect(Shellwords.split(output)).not_to include(excluded)
end
end
end
@@ -36,9 +37,9 @@ describe 'bin/sidekiq-cluster' do
output, status = Gitlab::Popen.popen(cmd, Rails.root.to_s)
expect(status).to be(0)
- expect(output).to include('"bundle", "exec", "sidekiq"')
- expect(output).to include('-qdefault,1')
- expect(output).to include('-qcronjob:ci_archive_traces_cron,1')
+ expect(output).to include('bundle exec sidekiq')
+ expect(Shellwords.split(output)).to include('-qdefault,1')
+ expect(Shellwords.split(output)).to include('-qcronjob:ci_archive_traces_cron,1')
end
end
end