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>2020-07-01 18:08:45 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-07-01 18:08:45 +0300
commitae1efa2e1d32dee59d8f509ba17b623b5ffe4ba6 (patch)
treea4cba8561c1671934751508ead7b2b1053e783ec /spec/workers/project_export_worker_spec.rb
parenta4c655515155710b3695699ea88d824f65af6446 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/workers/project_export_worker_spec.rb')
-rw-r--r--spec/workers/project_export_worker_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/workers/project_export_worker_spec.rb b/spec/workers/project_export_worker_spec.rb
index a9ba0b606e9..1f54b6766a4 100644
--- a/spec/workers/project_export_worker_spec.rb
+++ b/spec/workers/project_export_worker_spec.rb
@@ -69,4 +69,14 @@ RSpec.describe ProjectExportWorker do
end
end
end
+
+ describe 'sidekiq options' do
+ it 'disables retry' do
+ expect(described_class.sidekiq_options['retry']).to eq(false)
+ end
+
+ it 'sets default status expiration' do
+ expect(described_class.sidekiq_options['status_expiration']).to eq(StuckExportJobsWorker::EXPORT_JOBS_EXPIRATION)
+ end
+ end
end