diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-16 21:25:58 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-16 21:25:58 +0300 |
commit | a5f4bba440d7f9ea47046a0a561d49adf0a1e6d4 (patch) | |
tree | fb69158581673816a8cd895f9d352dcb3c678b1e /spec/workers/build_hooks_worker_spec.rb | |
parent | d16b2e8639e99961de6ddc93909f3bb5c1445ba1 (diff) |
Add latest changes from gitlab-org/gitlab@14-0-stable-eev14.0.0-rc42
Diffstat (limited to 'spec/workers/build_hooks_worker_spec.rb')
-rw-r--r-- | spec/workers/build_hooks_worker_spec.rb | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/spec/workers/build_hooks_worker_spec.rb b/spec/workers/build_hooks_worker_spec.rb index 8395d8fb0e7..5f7e7e5fb00 100644 --- a/spec/workers/build_hooks_worker_spec.rb +++ b/spec/workers/build_hooks_worker_spec.rb @@ -24,18 +24,8 @@ RSpec.describe BuildHooksWorker do end describe '.perform_async' do - context 'when delayed_perform_for_build_hooks_worker feature flag is disabled' do - before do - stub_feature_flags(delayed_perform_for_build_hooks_worker: false) - end - - it 'does not call perform_in' do - expect(described_class).not_to receive(:perform_in) - end - end - - it 'delays scheduling a job by calling perform_in' do - expect(described_class).to receive(:perform_in).with(described_class::DATA_CONSISTENCY_DELAY.second, 123) + it 'delays scheduling a job by calling perform_in with default delay' do + expect(described_class).to receive(:perform_in).with(ApplicationWorker::DEFAULT_DELAY_INTERVAL.second, 123) described_class.perform_async(123) end @@ -43,6 +33,5 @@ RSpec.describe BuildHooksWorker do it_behaves_like 'worker with data consistency', described_class, - feature_flag: :load_balancing_for_build_hooks_worker, data_consistency: :delayed end |