[libanyevent-http-scopedclient-perl] 01/01: added patch to disable test that require network access

Jonas Genannt jonas at brachium-system.net
Sat Jul 26 13:23:18 UTC 2014


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

hggh-guest pushed a commit to branch master
in repository libanyevent-http-scopedclient-perl.

commit 3120874e583ecb245b73c9b3eed9958b8bfceb91
Author: Jonas Genannt <jonas at brachium-system.net>
Date:   Sat Jul 26 15:23:14 2014 +0200

    added patch to disable test that require network access
---
 debian/patches/disable_test_scoped-client.patch | 40 +++++++++++++++++++++++++
 debian/patches/series                           |  1 +
 2 files changed, 41 insertions(+)

diff --git a/debian/patches/disable_test_scoped-client.patch b/debian/patches/disable_test_scoped-client.patch
new file mode 100644
index 0000000..65e819e
--- /dev/null
+++ b/debian/patches/disable_test_scoped-client.patch
@@ -0,0 +1,40 @@
+Description: disable test, because it requires network access during build
+Author: Jonas Genannt <jonas.genannt at capi2name.de>
+Forwarded: not-needed
+
+--- a/t/scoped-client.t
++++ /dev/null
+@@ -1,33 +0,0 @@
+-use utf8;
+-use strict;
+-use warnings;
+-use Test::More tests => 2;
+-use AnyEvent;
+-
+-use AnyEvent::HTTP::ScopedClient;
+-
+-my $cv   = AE::cv;
+-my $http = AnyEvent::HTTP::ScopedClient->new('http://www.naver.com/');
+-
+-$cv->begin;
+-$http->header( { 'Accept' => '*/*' } )->get(
+-    sub {
+-        my ( $body, $hdr ) = @_;
+-        diag("$hdr->{Status}: $hdr->{Reason}") if $hdr->{Status} !~ /^2/;
+-        is( $hdr->{Status}, 200, 'GET request' );
+-        $cv->end;
+-    }
+-);
+-
+-$cv->begin;
+-$http->post(
+-    { foo => 'bar', bar => 'baz', baz => '유니코드' },
+-    sub {
+-        my ( $body, $hdr ) = @_;
+-        diag("$hdr->{Status}: $hdr->{Reason}") if $hdr->{Status} !~ /^2/;
+-        is( $hdr->{Status}, 200, 'POST request' );
+-        $cv->end;
+-    }
+-);
+-
+-$cv->recv;
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..e858de2
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+disable_test_scoped-client.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libanyevent-http-scopedclient-perl.git



More information about the Pkg-perl-cvs-commits mailing list