# File test/test_restart.rb, line 28 def test_notify_restart th_grp = ThreadGroup.new begin 10.times do th_grp.add Thread.new{ @restart_signal.notify_restart } end @restart_signal.wait assert_equal(1, @restart_call) ensure for th in th_grp.list th.join end end assert_equal(1, @restart_call) end