1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Switch to original proctitle better while testing

This commit is contained in:
Dmitry Krasnoukhov 2014-04-14 13:44:04 +03:00
parent bd59becebd
commit 1770c74954

View file

@ -94,6 +94,11 @@ class TestManager < Sidekiq::Test
@mgr.assign(uow)
@processor.verify
@proctitle = $0
end
after do
$0 = @proctitle
end
describe 'when manager is active' do
@ -102,9 +107,7 @@ class TestManager < Sidekiq::Test
end
it 'sets useful info to proctitle' do
proctitle = $0
assert_equal "sidekiq #{Sidekiq::VERSION} myapp [1 of 3 busy]", $0
$0 = proctitle
end
it 'stores process info in redis' do
@ -128,9 +131,7 @@ class TestManager < Sidekiq::Test
end
it 'indicates status in proctitle' do
proctitle = $0
assert_equal "sidekiq #{Sidekiq::VERSION} myapp [0 of 3 busy] stopping", $0
$0 = proctitle
end
it 'stores process info in redis' do