# HG changeset patch # User Sergey Kandaurov # Date 1418393404 -10800 # Node ID 1a73389a19c43bde900de00b981d2462bad3fc1e # Parent a610ee837190b85931a070d114c64bc9d3292ace Tests: fixed tests with multi-threaded memcached. diff --git a/memcached_keepalive.t b/memcached_keepalive.t --- a/memcached_keepalive.t +++ b/memcached_keepalive.t @@ -101,6 +101,12 @@ if ($memhelp =~ /-U/) { push @memopts1, '-U', '0'; push @memopts2, '-U', '0'; } +if ($memhelp =~ /-t/) { + # for connection stats consistency in threaded memcached 1.3+ + + push @memopts1, '-t', '1'; + push @memopts2, '-t', '1'; +} $t->run_daemon('memcached', '-l', '127.0.0.1', '-p', '8081', @memopts1); $t->run_daemon('memcached', '-l', '127.0.0.1', '-p', '8082', @memopts2); diff --git a/memcached_keepalive_stale.t b/memcached_keepalive_stale.t --- a/memcached_keepalive_stale.t +++ b/memcached_keepalive_stale.t @@ -72,6 +72,11 @@ if ($memhelp =~ /-U/) { push @memopts1, '-U', '0'; } +if ($memhelp =~ /-t/) { + # for connection stats consistency in threaded memcached 1.3+ + + push @memopts1, '-t', '1'; +} $t->run_daemon('memcached', '-l', '127.0.0.1', '-p', '8081', @memopts1);