Mercurial > hg > nginx-tests
changeset 513:1a73389a19c4
Tests: fixed tests with multi-threaded memcached.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Fri, 12 Dec 2014 17:10:04 +0300 |
parents | a610ee837190 |
children | 42d447013553 |
files | memcached_keepalive.t memcached_keepalive_stale.t |
diffstat | 2 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/memcached_keepalive.t Wed Dec 10 18:48:40 2014 +0300 +++ b/memcached_keepalive.t Fri Dec 12 17:10:04 2014 +0300 @@ -101,6 +101,12 @@ 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);
--- a/memcached_keepalive_stale.t Wed Dec 10 18:48:40 2014 +0300 +++ b/memcached_keepalive_stale.t Fri Dec 12 17:10:04 2014 +0300 @@ -72,6 +72,11 @@ 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);