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:
parent
bd59becebd
commit
1770c74954
1 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue