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