Description: disable tests requiring network connection
 These tests should pass if network access is available
Bug-Debian: http://bugs.debian.org/710941
Origin: vendor
Author: Cédric Boutillier <boutil@debian.org>
Forwarded: not-needed
Last-Update: 2013-06-16

--- a/tests/test_basic.rb
+++ b/tests/test_basic.rb
@@ -130,7 +130,7 @@
     assert_equal($sent, $received)
   end
 
-  def test_bind_connect
+  def est_bind_connect
     local_ip = UDPSocket.open {|s| s.connect('google.com', 80); s.addr.last }
 
     bind_port = next_port
--- a/tests/test_httpclient.rb
+++ b/tests/test_httpclient.rb
@@ -13,7 +13,7 @@
 
   #-------------------------------------
 
-  def test_http_client
+  def est_http_client
     ok = false
     EM.run {
       c = silent { EM::P::HttpClient.send :request, :host => "www.google.com", :port => 80 }
@@ -28,7 +28,7 @@
 
   #-------------------------------------
 
-  def test_http_client_1
+  def est_http_client_1
     ok = false
     EM.run {
       c = silent { EM::P::HttpClient.send :request, :host => "www.google.com", :port => 80 }
@@ -40,7 +40,7 @@
 
   #-------------------------------------
 
-  def test_http_client_2
+  def est_http_client_2
     ok = false
     EM.run {
       c = silent { EM::P::HttpClient.send :request, :host => "www.google.com", :port => 80 }
@@ -155,7 +155,7 @@
 
   # TODO, need a more intelligent cookie tester.
   # In fact, this whole test-harness needs a beefier server implementation.
-  def test_cookie
+  def est_cookie
     ok = false
     EM.run {
       c = silent { EM::Protocols::HttpClient.send :request, :host => "www.google.com", :port => 80, :cookie=>"aaa=bbb" }
@@ -170,7 +170,7 @@
 
   # We can tell the client to send an HTTP/1.0 request (default is 1.1).
   # This is useful for suppressing chunked responses until those are working.
-  def test_version_1_0
+  def est_version_1_0
     ok = false
     EM.run {
       c = silent { EM::P::HttpClient.request(
--- a/tests/test_httpclient2.rb
+++ b/tests/test_httpclient2.rb
@@ -51,7 +51,7 @@
     assert(err)
   end
 
-  def test_get
+  def est_get
     content = nil
     EM.run {
       http = silent { EM::P::HttpClient2.connect "google.com", 80 }
@@ -83,7 +83,7 @@
     assert(content)
   end
 
-  def test_get_pipeline
+  def est_get_pipeline
     headers, headers2 = nil, nil
     EM.run {
       http = silent { EM::P::HttpClient2.connect "google.com", 80 }
@@ -113,7 +113,7 @@
     }
   end
 
-  def test_https_get
+  def est_https_get
     d = nil
     EM.run {
       http = silent { EM::P::HttpClient2.connect :host => 'www.apple.com', :port => 443, :ssl => true }
--- a/tests/test_resolver.rb
+++ b/tests/test_resolver.rb
@@ -1,7 +1,7 @@
 require 'em_test_helper'
 
 class TestResolver < Test::Unit::TestCase
-  def test_a
+  def est_a
     EM.run {
       d = EM::DNS::Resolver.resolve "google.com"
       d.errback { assert false }
@@ -12,7 +12,7 @@
     }
   end
 
-  def test_bad_host
+  def est_bad_host
     EM.run {
       d = EM::DNS::Resolver.resolve "asdfasasdf"
       d.callback { assert false }
@@ -28,7 +28,7 @@
     }
   end
 
-  def test_a_pair
+  def est_a_pair
     EM.run {
       d = EM::DNS::Resolver.resolve "google.com"
       d.errback { assert false }
@@ -52,4 +52,4 @@
       }
     }
   end
-end
\ No newline at end of file
+end
--- a/tests/test_unbind_reason.rb
+++ b/tests/test_unbind_reason.rb
@@ -11,7 +11,7 @@
     end
   end
 
-  def test_connect_timeout
+  def est_connect_timeout
     error = nil
     EM.run {
       conn = EM.connect 'google.com', 81, Module.new{ |m|
--- a/tests/test_pending_connect_timeout.rb
+++ b/tests/test_pending_connect_timeout.rb
@@ -20,7 +20,7 @@
       }
     end
 
-    def test_for_real
+    def est_for_real
       start, finish = nil
 
       timeout_handler = Module.new do
