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
+++ 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);
--- 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);