diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-18 18:08:09 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-18 18:08:09 +0300 |
commit | a84995f457d775bb73598d4393c3bc99805d9b58 (patch) | |
tree | addb114fc5a24554f54382a6df7dd03169507230 /spec/lib/gitlab | |
parent | c9dcd65796f7dc2c927abd81ef1a923e5f0fd08e (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/gitlab')
-rw-r--r-- | spec/lib/gitlab/sidekiq_config_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/lib/gitlab/sidekiq_config_spec.rb b/spec/lib/gitlab/sidekiq_config_spec.rb index c74bd933b22..4a1a9beb21a 100644 --- a/spec/lib/gitlab/sidekiq_config_spec.rb +++ b/spec/lib/gitlab/sidekiq_config_spec.rb @@ -49,9 +49,10 @@ RSpec.describe Gitlab::SidekiqConfig do before do allow(described_class).to receive(:workers).and_return(workers) allow(Gitlab).to receive(:ee?).and_return(false) + allow(Gitlab).to receive(:jh?).and_return(false) end - it 'returns true if the YAML file does not matcph the application code' do + it 'returns true if the YAML file does not match the application code' do allow(YAML).to receive(:load_file) .with(described_class::FOSS_QUEUE_CONFIG_PATH) .and_return(workers.first(2).map(&:to_yaml)) @@ -101,6 +102,7 @@ RSpec.describe Gitlab::SidekiqConfig do ].map { |worker| described_class::Worker.new(worker, ee: false) } allow(described_class).to receive(:workers).and_return(workers) + allow(Gitlab).to receive(:jh?).and_return(false) end let(:expected_queues) do |