From 37a9c2258a323eee69274dfb6d710a712201c61d Mon Sep 17 00:00:00 2001 From: Claire Date: Tue, 20 Jun 2023 18:54:05 +0200 Subject: [PATCH] Add per-test timeouts to AutoStatusesCleanupScheduler tests (#24841) --- .../scheduler/accounts_statuses_cleanup_scheduler_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/workers/scheduler/accounts_statuses_cleanup_scheduler_spec.rb b/spec/workers/scheduler/accounts_statuses_cleanup_scheduler_spec.rb index 5565636d5..4d9185093 100644 --- a/spec/workers/scheduler/accounts_statuses_cleanup_scheduler_spec.rb +++ b/spec/workers/scheduler/accounts_statuses_cleanup_scheduler_spec.rb @@ -75,6 +75,12 @@ describe Scheduler::AccountsStatusesCleanupScheduler do end describe '#perform' do + around do |example| + Timeout.timeout(30) do + example.run + end + end + before do # Policies for the accounts Fabricate(:account_statuses_cleanup_policy, account: account_alice)