From d94a47146a91b75d2252b5b85f144129e7e54ab1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20Lled=C3=B3?= Date: Tue, 12 Sep 2023 18:06:00 +0200 Subject: [PATCH] Fix sidekiq task test --- test/unit/tasks/sidekiq_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/tasks/sidekiq_test.rb b/test/unit/tasks/sidekiq_test.rb index 97df549e4b..5be586e182 100644 --- a/test/unit/tasks/sidekiq_test.rb +++ b/test/unit/tasks/sidekiq_test.rb @@ -8,7 +8,7 @@ class SidekiqTest < ActiveSupport::TestCase queues = %w[backend_sync billing critical default deletion events low mailers priority web_hooks zync] .flat_map { |queue| ['--queue', queue] } - Object.any_instance.expects(:exec).with({ 'RAILS_MAX_THREADS' => '1' }, 'sidekiq', '--index', '0', *queues) + Object.any_instance.expects(:exec).with({ 'RAILS_MAX_THREADS' => '1' }, 'sidekiq', *queues) execute_rake_task 'sidekiq.rake', 'sidekiq:worker' end end