1
0
Fork 0
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:
Chris Kershaw 2016-01-29 20:12:27 -05:00
parent de405cc09b
commit 53c7824d06

View file

@ -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 {