Skip to content

Commit

Permalink
Set default cron_poll_interval to 30 in launcher test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
satyakampandya committed Oct 6, 2024
1 parent d95819b commit 8340e02
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/unit/launcher_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

describe 'Cron launcher' do
describe 'initialization' do
before do
Sidekiq::Cron.configuration.cron_poll_interval = 30
end

it 'initializes poller with default poll interval when not configured' do
Sidekiq::Cron::Poller.expects(:new).with do |options|
assert_equal 30, options[:cron_poll_interval]
Expand Down

0 comments on commit 8340e02

Please sign in to comment.