# File test/test_logger.rb, line 787 def test_write_log spin_lock = true NUM_OF_THREAD.times do @th_grp.add Thread.new{ while (spin_lock) # ready to start. end NUM_OF_CALL.times do @access_log.write_log(self, self, Time.now) end } end spin_lock = false for thread in @th_grp.list thread.join end assert_equal(NUM_OF_THREAD * NUM_OF_CALL, @write_log_call) end