test/test_helper.rb in stomp-1.4.4 vs test/test_helper.rb in stomp-1.4.5

- old
+ new

@@ -76,10 +76,11 @@ :connect_headers => ch, :stompconn => get_stomp_conn(), :usecrlf => get_crlf(), } conn = Stomp::Connection.open(hash) + no_rep_error() conn end # Get a Stomp Anonymous Connection. def get_anonymous_connection() @@ -91,10 +92,11 @@ :connect_headers => ch, :stompconn => get_stomp_conn(), :usecrlf => get_crlf(), } conn = Stomp::Connection.open(hash) + no_rep_error() conn end # Get a Stomp SSL Connection. def get_ssl_connection() @@ -106,10 +108,19 @@ :connect_headers => ch, :stompconn => get_stomp_conn(), :usecrlf => get_crlf(), } conn = Stomp::Connection.new(hash) + no_rep_error() conn + end + + # + def no_rep_error() + ct = Thread::current + if ct.respond_to?(:report_on_exception=) + ct.report_on_exception=false + end end # Get a Stomp Client. def get_client() hash = { :hosts => [