[libanyevent-gearman-perl] 01/03: Change delay in fix-reconnect.patch from 7s to 0.3s
Marius Gavrilescu
marius-guest at moszumanska.debian.org
Mon Mar 10 12:56:17 UTC 2014
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 be3bf97dcebc8bd09256ee501bea603f8ec054f4
Author: Marius Gavrilescu <marius at ieval.ro>
Date: Mon Mar 10 14:39:33 2014 +0200
Change delay in fix-reconnect.patch from 7s to 0.3s
---
debian/patches/fix-reconnect-test.patch | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/debian/patches/fix-reconnect-test.patch b/debian/patches/fix-reconnect-test.patch
index 306165f..6649855 100644
--- a/debian/patches/fix-reconnect-test.patch
+++ b/debian/patches/fix-reconnect-test.patch
@@ -1,16 +1,24 @@
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.
+ 0.3 seconds (randomly chosen), and the test passes.
Author: Marius Gavrilescu <marius at ieval.ro>
Forwarded: no
-Last-Update: 2013-10-24
+Last-Update: 2013-12-25
--- a/t/04_reconnect.t
+++ b/t/04_reconnect.t
-@@ -43,6 +43,7 @@
+@@ -1,6 +1,7 @@
+ use Test::More;
+ use Test::TCP;
+ use AnyEvent::Gearman::Client;
++use Time::HiRes qw/sleep/;
+
+ eval q{
+ use Gearman::Worker;
+@@ -43,6 +44,7 @@
ok !$js->connected, 'disconnect ok';
$js->dead_time(0); # trick for reconnect soon
-+ sleep 7;
++ sleep 0.3;
}
{
--
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