comparison memcached_keepalive.t @ 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 d5bf5942a8b2
children c0b4ae82fd9d
comparison
equal deleted inserted replaced
512:a610ee837190 513:1a73389a19c4
99 # UDP ports no longer off by default in memcached 1.2.7+ 99 # UDP ports no longer off by default in memcached 1.2.7+
100 100
101 push @memopts1, '-U', '0'; 101 push @memopts1, '-U', '0';
102 push @memopts2, '-U', '0'; 102 push @memopts2, '-U', '0';
103 } 103 }
104 if ($memhelp =~ /-t/) {
105 # for connection stats consistency in threaded memcached 1.3+
106
107 push @memopts1, '-t', '1';
108 push @memopts2, '-t', '1';
109 }
104 110
105 $t->run_daemon('memcached', '-l', '127.0.0.1', '-p', '8081', @memopts1); 111 $t->run_daemon('memcached', '-l', '127.0.0.1', '-p', '8081', @memopts1);
106 $t->run_daemon('memcached', '-l', '127.0.0.1', '-p', '8082', @memopts2); 112 $t->run_daemon('memcached', '-l', '127.0.0.1', '-p', '8082', @memopts2);
107 113
108 $t->run(); 114 $t->run();