# File test/test_restart.rb, line 64 def test_cancel begin th = Thread.new{ @restart_signal.wait } @restart_signal.cancel @restart_signal.notify_restart ensure th.join end assert_equal(0, @restart_call) assert_equal(0, @close_call) end