mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Need a logfile to reopen logs
This commit is contained in:
parent
de405cc09b
commit
53c7824d06
1 changed files with 9 additions and 0 deletions
|
@ -323,6 +323,15 @@ class TestCli < Sidekiq::Test
|
|||
end
|
||||
|
||||
describe 'handles USR1 and USR2' do
|
||||
before do
|
||||
@tmp_log_path = '/tmp/sidekiq.log'
|
||||
@cli.parse(['sidekiq', '-L', @tmp_log_path, '-r', './test/fake_env.rb'])
|
||||
end
|
||||
|
||||
after do
|
||||
File.unlink @tmp_log_path if File.exists? @tmp_log_path
|
||||
end
|
||||
|
||||
it 'shuts down the worker' do
|
||||
count = 0
|
||||
Sidekiq.options[:lifecycle_events][:quiet] = [proc {
|
||||
|
|
Loading…
Add table
Reference in a new issue