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:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-05-20 00:12:42 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-05-20 00:12:42 +0300
commitc1ea2a91648ca8bfdb2e17e3ec7e3358da490dc8 (patch)
treef5770d2ec59e1fe0206fe56857e4349281566f5e /spec/workers/build_hooks_worker_spec.rb
parente4fc62c0af80cfaaa907aea83ae4012e06a1f9e4 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/workers/build_hooks_worker_spec.rb')
-rw-r--r--spec/workers/build_hooks_worker_spec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/workers/build_hooks_worker_spec.rb b/spec/workers/build_hooks_worker_spec.rb
index 8395d8fb0e7..3628ebc7260 100644
--- a/spec/workers/build_hooks_worker_spec.rb
+++ b/spec/workers/build_hooks_worker_spec.rb
@@ -29,8 +29,10 @@ RSpec.describe BuildHooksWorker 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)
+ 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
end