[libanyevent-gearman-perl] 01/01: Fix failing test

Marius Gavrilescu marius-guest at alioth.debian.org
Thu Oct 24 06:50:44 UTC 2013


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

marius-guest pushed a commit to branch master
in repository libanyevent-gearman-perl.

commit a300eebb13e3b4887e480a555002eb0d69c8e680
Author: Marius Gavrilescu <marius at ieval.ro>
Date:   Thu Oct 24 09:44:38 2013 +0300

    Fix failing test
---
 debian/patches/fix-reconnect-test.patch |   16 ++++++++++++++++
 debian/patches/series                   |    1 +
 2 files changed, 17 insertions(+)

diff --git a/debian/patches/fix-reconnect-test.patch b/debian/patches/fix-reconnect-test.patch
new file mode 100644
index 0000000..306165f
--- /dev/null
+++ b/debian/patches/fix-reconnect-test.patch
@@ -0,0 +1,16 @@
+Description: Fix t/04_reconnect.t
+ The reconnect test fails due to a race condition. This patch sleeps for
+ 7 seconds (randomly chosen), and the test passes.
+Author: Marius Gavrilescu <marius at ieval.ro>
+Forwarded: no
+Last-Update: 2013-10-24
+--- a/t/04_reconnect.t
++++ b/t/04_reconnect.t
+@@ -43,6 +43,7 @@
+         ok !$js->connected, 'disconnect ok';
+ 
+         $js->dead_time(0); # trick for reconnect soon
++        sleep 7;
+     }
+ 
+     {
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..d688320
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix-reconnect-test.patch

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



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