Mercurial > hg > nginx-tests
changeset 582:dc97097100a5
Tests: upstream_hash_memcached.t TODOs on big-endian.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 19 May 2015 13:25:56 +0300 |
parents | 8593f34a12e5 |
children | 5276aceb32a6 |
files | upstream_hash_memcached.t |
diffstat | 1 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/upstream_hash_memcached.t Mon May 18 20:40:48 2015 +0300 +++ b/upstream_hash_memcached.t Tue May 19 13:25:56 2015 +0300 @@ -13,6 +13,8 @@ use Test::More; +use Config; + BEGIN { use FindBin; chdir($FindBin::Bin); } use lib 'lib'; @@ -135,8 +137,14 @@ $memd = new Cache::Memcached::Fast({ ketama_points => 160, servers => [ '127.0.0.1:8081', '127.0.0.1:8082', '127.0.0.1:8083'] }); +TODO: { +local $TODO = 'not yet' unless $Config{byteorder} eq '12345678' + or $t->has_version('1.9.1'); + is_deeply(ngx('/c'), mem($memd), 'cache::memcached::fast'); +} + $memd = new Cache::Memcached(servers => [ [ '127.0.0.1:8081', 2 ], [ '127.0.0.1:8082', 3 ], @@ -149,8 +157,14 @@ { address => '127.0.0.1:8082', weight => 3 }, { address => '127.0.0.1:8083', weight => 1 }] }); +TODO: { +local $TODO = 'not yet' unless $Config{byteorder} eq '12345678' + or $t->has_version('1.9.1'); + is_deeply(ngx('/cw'), mem($memd), 'cache::memcached::fast weight'); +} + ############################################################################### sub ngx {