comparison memcached.t @ 62:9a5fab7c0dec

Tests: memcached notfound fixed in 0.7.31, remove TODO.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 26 Jan 2009 03:16:46 +0300
parents 74f276d0fca1
children 726c3c2a8b8c
comparison
equal deleted inserted replaced
61:74f276d0fca1 62:9a5fab7c0dec
71 my $memd = Cache::Memcached->new(servers => [ '127.0.0.1:8081' ]); 71 my $memd = Cache::Memcached->new(servers => [ '127.0.0.1:8081' ]);
72 $memd->set('/', 'SEE-THIS'); 72 $memd->set('/', 'SEE-THIS');
73 73
74 like(http_get('/'), qr/SEE-THIS/, 'memcached request'); 74 like(http_get('/'), qr/SEE-THIS/, 'memcached request');
75 75
76 TODO: {
77 local $TODO = 'broken since 0.7.18';
78
79 like(http_get('/notfound'), qr/404/, 'memcached not found'); 76 like(http_get('/notfound'), qr/404/, 'memcached not found');
80 }
81 77
82 like(http_get('/next'), qr/404/, 'not found with memcached_next_upstream'); 78 like(http_get('/next'), qr/404/, 'not found with memcached_next_upstream');
83 79
84 unlike(http_head('/'), qr/SEE-THIS/, 'memcached no data in HEAD'); 80 unlike(http_head('/'), qr/SEE-THIS/, 'memcached no data in HEAD');
85 81