# File test/test_connection.rb, line 264 def test_thread_hang_one received = nil Thread.new(@conn) do |amq| while true received = amq.receive end end # conn_subscribe( make_destination ) message = Time.now.to_s @conn.publish(make_destination, message) sleep 1 assert_not_nil received assert_equal message, received.body checkEmsg(@conn) end