Mercurial > hg > nginx-tests
comparison memcached_keepalive_stale.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 | 6cbcfb4ef7ee |
children | c0b4ae82fd9d |
comparison
equal
deleted
inserted
replaced
512:a610ee837190 | 513:1a73389a19c4 |
---|---|
70 if ($memhelp =~ /-U/) { | 70 if ($memhelp =~ /-U/) { |
71 # UDP ports no longer off by default in memcached 1.2.7+ | 71 # UDP ports no longer off by default in memcached 1.2.7+ |
72 | 72 |
73 push @memopts1, '-U', '0'; | 73 push @memopts1, '-U', '0'; |
74 } | 74 } |
75 if ($memhelp =~ /-t/) { | |
76 # for connection stats consistency in threaded memcached 1.3+ | |
77 | |
78 push @memopts1, '-t', '1'; | |
79 } | |
75 | 80 |
76 $t->run_daemon('memcached', '-l', '127.0.0.1', '-p', '8081', @memopts1); | 81 $t->run_daemon('memcached', '-l', '127.0.0.1', '-p', '8081', @memopts1); |
77 | 82 |
78 $t->run(); | 83 $t->run(); |
79 | 84 |