Mercurial > hg > nginx-tests
comparison proxy_cache_bypass.t @ 1251:766bcbb632ee
Tests: removed TODO and try_run() checks for legacy versions.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Fri, 24 Nov 2017 19:58:40 +0300 |
parents | 196d33c2bb45 |
children |
comparison
equal
deleted
inserted
replaced
1250:b708848eb49a | 1251:766bcbb632ee |
---|---|
91 | 91 |
92 $t->write_file('t2', 'NOOP'); | 92 $t->write_file('t2', 'NOOP'); |
93 | 93 |
94 like(http_get('/t2'), qr/403 Forbidden/, 'error cached'); | 94 like(http_get('/t2'), qr/403 Forbidden/, 'error cached'); |
95 like(http_get('/t2?bypass=1'), qr/NOOP/, 'error cache bypassed'); | 95 like(http_get('/t2?bypass=1'), qr/NOOP/, 'error cache bypassed'); |
96 | |
97 TODO: { | |
98 local $TODO = 'not yet' unless $t->has_version('1.11.0'); | |
99 | |
100 like(http_get('/t2'), qr/NOOP/, 'error cached after bypass'); | 96 like(http_get('/t2'), qr/NOOP/, 'error cached after bypass'); |
101 | 97 |
102 } | |
103 | |
104 ############################################################################### | 98 ############################################################################### |