diff --git a/app/jobs/application_job.rb b/app/jobs/application_job.rb index 0ab981368a7adec87a1f6a6aae9c46701bd2bd02..63c6eb5f2b277a02fccc11a6240261fc1d821a30 100644 --- a/app/jobs/application_job.rb +++ b/app/jobs/application_job.rb @@ -1,5 +1,5 @@ class ApplicationJob < ActiveJob::Base - retry_on StandardError, wait: :exponentially_longer, attempts: Float::INFINITY + retry_on StandardError, wait: :polynomially_longer, attempts: Float::INFINITY # https://github.com/bensheldon/good_job?tab=readme-ov-file#labelled-jobs include GoodJob::ActiveJobExtensions::Labels diff --git a/test/models/communication/website/dependency_test.rb b/test/models/communication/website/dependency_test.rb index 106d2a461d24e32d068348a8d822fb14616c251a..51c10a38c2a143fc1ed993869dd7914df945e9f9 100644 --- a/test/models/communication/website/dependency_test.rb +++ b/test/models/communication/website/dependency_test.rb @@ -5,13 +5,13 @@ class Communication::Website::DependencyTest < ActiveSupport::TestCase include ActiveJob::TestHelper def test_page_dependencies - # Rien : 0 dépendances + # Par défaut, 1 dépendance (la configuration CSP du site) page = communication_website_pages(:page_with_no_dependency) assert_equal 1, page.recursive_dependencies.count - # On ajoute un block "Chapitre" : 7 dépendances (les 6 composants du chapitre + le block lui même) + # On ajoute un block "Chapitre" : +1 dépendance (le block) page.blocks.create(position: 1, published: true, template_kind: :chapter) - assert_equal 8, page.recursive_dependencies.count + assert_equal 2, page.recursive_dependencies.count end def test_change_block_dependencies