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) {
