diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2015-08-15 22:41:46 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2015-08-15 22:41:46 +0900 |
commit | e875273ebc4c7b63ca2b8dbb1d837a57f215d91c (patch) | |
tree | d33a90a8b4abd486f8b4e9355741cdda12355d8f /activejob/test | |
parent | a293812bffbc6e634e1a6e6794e9dec537d522a3 (diff) | |
download | rails-e875273ebc4c7b63ca2b8dbb1d837a57f215d91c.tar.gz rails-e875273ebc4c7b63ca2b8dbb1d837a57f215d91c.tar.bz2 rails-e875273ebc4c7b63ca2b8dbb1d837a57f215d91c.zip |
use `average_scheduled_poll_interval` option instead of deprecated `poll_interval`
this removes the following warning:
```
DEPRECATION: `config.poll_interval = 0.5` will be removed in Sidekiq 4. Please update to `config.average_scheduled_poll_interval = 0.5`.
```
Diffstat (limited to 'activejob/test')
-rw-r--r-- | activejob/test/support/integration/adapters/sidekiq.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activejob/test/support/integration/adapters/sidekiq.rb b/activejob/test/support/integration/adapters/sidekiq.rb index 4988cdb33f..d9938600f2 100644 --- a/activejob/test/support/integration/adapters/sidekiq.rb +++ b/activejob/test/support/integration/adapters/sidekiq.rb @@ -57,7 +57,7 @@ module SidekiqJobsManager concurrency: 1, timeout: 1, }) - Sidekiq.poll_interval = 0.5 + Sidekiq.average_scheduled_poll_interval = 0.5 Sidekiq::Scheduled.const_set :INITIAL_WAIT, 1 begin sidekiq.run |