[libanyevent-yubico-perl] 04/07: Add handle-test-timeouts.patch

Nick Morrott nickm-guest at moszumanska.debian.org
Sun Jun 5 02:04:26 UTC 2016


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

nickm-guest pushed a commit to branch master
in repository libanyevent-yubico-perl.

commit 8f72578b8de931c7ea46ba494c4f4160b96d116b
Author: Nick Morrott <knowledgejunkie at gmail.com>
Date:   Sun Jun 5 02:09:56 2016 +0100

    Add handle-test-timeouts.patch
---
 debian/patches/handle-test-timeouts.patch | 28 ++++++++++++++++++++++++++++
 debian/patches/series                     |  1 +
 2 files changed, 29 insertions(+)

diff --git a/debian/patches/handle-test-timeouts.patch b/debian/patches/handle-test-timeouts.patch
new file mode 100644
index 0000000..463e391
--- /dev/null
+++ b/debian/patches/handle-test-timeouts.patch
@@ -0,0 +1,28 @@
+Description: Handle test timeouts
+ Message from referenced upstream pull request:
+ .
+ Computers are fast. Put a couple extra zeros in the timeout value appears to
+ be necessary.
+ .
+ Also... keep on using the dummy (http://127.0.0.1:0) through the timeout
+ test; this allows the test to pass. Why, I have no idea, but it won't pass
+ for me otherwise.
+Origin: upstream, https://github.com/Yubico/yubico-perl-client/pull/2
+Last-Update: 2016-06-05
+---
+--- a/t/AnyEvent-Yubico.t
++++ b/t/AnyEvent-Yubico.t
+@@ -39,11 +39,11 @@
+ 
+ is($validator->verify_async("vvgnkjjhndihvgdftlubvujrhtjnllfjneneugijhfll")->recv()->{status}, "Connection refused", "invalid URL");
+ 
+-$validator->{urls} = $default_urls;
+-$validator->{local_timeout} = 0.01;
++$validator->{local_timeout} = 0.0001;
+ 
+ is($validator->verify_sync("vvgnkjjhndihvgdftlubvujrhtjnllfjneneugijhfll")->{status}, "Connection timed out", "timeout");
+ 
++$validator->{urls} = $default_urls;
+ $validator->{local_timeout} = 30.0;
+ 
+ subtest 'Tests that require access to the Internet' => sub {
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..f60df3f
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+handle-test-timeouts.patch

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



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