[DRE-commits] [ruby-eventmachine] 04/05: Refresh patch

zeha at debian.org zeha at debian.org
Wed May 31 09:08:16 UTC 2017


This is an automated email from the git hooks/post-receive script.

zeha pushed a commit to branch master
in repository ruby-eventmachine.

commit 6753be9d11f09d55b7ae949eebda9998f196dba6
Author: Christian Hofstaedtler <zeha at debian.org>
Date:   Sun Jul 31 20:13:25 2016 +0000

    Refresh patch
---
 debian/patches/skip_tests_using_network.patch | 30 +++++++++++++--------------
 1 file changed, 15 insertions(+), 15 deletions(-)

diff --git a/debian/patches/skip_tests_using_network.patch b/debian/patches/skip_tests_using_network.patch
index e2247b3..f681321 100644
--- a/debian/patches/skip_tests_using_network.patch
+++ b/debian/patches/skip_tests_using_network.patch
@@ -10,15 +10,15 @@ Index: ruby-eventmachine/tests/test_basic.rb
 ===================================================================
 --- ruby-eventmachine.orig/tests/test_basic.rb
 +++ ruby-eventmachine/tests/test_basic.rb
-@@ -130,7 +130,7 @@ class TestBasic < Test::Unit::TestCase
+@@ -143,7 +143,7 @@ class TestBasic < Test::Unit::TestCase
      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 }
+     pend('FIXME: this test is broken on Windows') if windows?
  
-     bind_port = next_port
+     local_ip = UDPSocket.open {|s| s.connect('google.com', 80); s.addr.last }
 Index: ruby-eventmachine/tests/test_httpclient.rb
 ===================================================================
 --- ruby-eventmachine.orig/tests/test_httpclient.rb
@@ -103,16 +103,16 @@ Index: ruby-eventmachine/tests/test_resolver.rb
 ===================================================================
 --- ruby-eventmachine.orig/tests/test_resolver.rb
 +++ ruby-eventmachine/tests/test_resolver.rb
-@@ -1,7 +1,7 @@
- require 'em_test_helper'
+@@ -16,7 +16,7 @@ class TestResolver < Test::Unit::TestCas
+     refute(EM::DNS::Resolver.hosts.include? nil)
+   end
  
- class TestResolver < Test::Unit::TestCase
 -  def test_a
 +  def est_a
+     pend('FIXME: this test is broken on Windows') if windows?
+ 
      EM.run {
-       d = EM::DNS::Resolver.resolve "google.com"
-       d.errback { assert false }
-@@ -12,7 +12,7 @@ class TestResolver < Test::Unit::TestCas
+@@ -29,7 +29,7 @@ class TestResolver < Test::Unit::TestCas
      }
    end
  
@@ -121,24 +121,24 @@ Index: ruby-eventmachine/tests/test_resolver.rb
      EM.run {
        d = EM::DNS::Resolver.resolve "asdfasasdf"
        d.callback { assert false }
-@@ -28,7 +28,7 @@ class TestResolver < Test::Unit::TestCas
+@@ -45,7 +45,7 @@ class TestResolver < Test::Unit::TestCas
      }
    end
  
 -  def test_a_pair
 +  def est_a_pair
+     pend('FIXME: this test is broken on Windows') if windows?
+ 
      EM.run {
-       d = EM::DNS::Resolver.resolve "yahoo.com"
-       d.errback { |err| assert false, "failed to resolve yahoo.com: #{err}" }
-@@ -53,7 +53,7 @@ class TestResolver < Test::Unit::TestCas
+@@ -74,7 +74,7 @@ class TestResolver < Test::Unit::TestCas
      }
    end
  
 -  def test_timer_cleanup
 +  def est_timer_cleanup
+     pend('FIXME: this test is broken on Windows') if windows?
+ 
      EM.run {
-       d = EM::DNS::Resolver.resolve "google.com"
-       d.errback { |err| assert false, "failed to resolve google.com: #{err}" }
 Index: ruby-eventmachine/tests/test_unbind_reason.rb
 ===================================================================
 --- ruby-eventmachine.orig/tests/test_unbind_reason.rb

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-eventmachine.git



More information about the Pkg-ruby-extras-commits mailing list