1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
Description: fix/skip timing dependent tests
Bug-Debian: https://bugs.debian.org/545626
Forwarded: no
Author: Niko Tyni <ntyni@debian.org>
Reviewed-by: gregor herrmann <gregoa@debian.org>
Last-Update: 2012-06-08
--- a/t/05_reconnect_timeout.t
+++ b/t/05_reconnect_timeout.t
@@ -32,6 +32,9 @@
exit 0;
}
+SKIP: {
+ skip "Skipping network tests for Debian builds", 2 if $ENV{DEBIAN_BUILD};
+
my $memd = Cache::Memcached->new({
servers => [ $testaddr ],
namespace => "Cache::Memcached::t/$$/" . (time() % 100) . "/",
@@ -48,3 +51,5 @@
$memd->set("key", "foo");
my $time3 = Time::HiRes::time();
ok($time3 - $time2 < .1, "Should return fast on retry");
+
+} # SKIP
--- a/t/100_flush_bug.t
+++ b/t/100_flush_bug.t
@@ -54,6 +54,10 @@
# give the forked server a chance to startup
sleep 1;
+# wait for the child to get the server ready
+# see http://bugs.debian.org/545626
+sleep 1;
+
my $memd = Cache::Memcached->new({ servers => [ $testaddr ] });
for (@res) {
|