unhack spec
This commit is contained in:
parent
b160882ef2
commit
85317e7658
|
@ -3,27 +3,9 @@ require_dependency 'sidekiq/pausable'
|
|||
|
||||
describe Sidekiq do
|
||||
it "can pause and unpause" do
|
||||
|
||||
# Temporary work around
|
||||
|
||||
t = Thread.new do
|
||||
Sidekiq.pause!
|
||||
Sidekiq.paused?.should == true
|
||||
Sidekiq.unpause!
|
||||
Sidekiq.paused?.should == false
|
||||
end
|
||||
|
||||
t2 = Thread.new do
|
||||
sleep 5
|
||||
t.kill
|
||||
end
|
||||
|
||||
t.join
|
||||
if t2.alive?
|
||||
t2.kill
|
||||
else
|
||||
raise "Timed out running sidekiq pause test"
|
||||
end
|
||||
|
||||
Sidekiq.pause!
|
||||
Sidekiq.paused?.should == true
|
||||
Sidekiq.unpause!
|
||||
Sidekiq.paused?.should == false
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue