Mercurial > hg > nginx-tests
comparison proxy_cache_use_stale.t @ 1987:a095b971fbcc
Tests: removed TODO and try_run() checks for legacy versions.
For h2_http2.t, try_run() is preserved to ensure that deprecation
warnings for "listen ... http2" are suppressed, yet plan() is reported
before try_run(), so failure to start will be properly reported.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 04 Jun 2024 18:38:01 +0300 |
parents | e3dd111410fe |
children |
comparison
equal
deleted
inserted
replaced
1986:11463d379570 | 1987:a095b971fbcc |
---|---|
245 $t->write_file('ssi.html', 'xxx <!--#include virtual="/t9.html?lim=1" --> xxx'); | 245 $t->write_file('ssi.html', 'xxx <!--#include virtual="/t9.html?lim=1" --> xxx'); |
246 | 246 |
247 $r = read_all(http_get('/ssi.html', start => 1)); | 247 $r = read_all(http_get('/ssi.html', start => 1)); |
248 like($r, qr/^xxx (SEE-THIS){1024} xxx$/ms, 's-w-r - not blocked in subrequest'); | 248 like($r, qr/^xxx (SEE-THIS){1024} xxx$/ms, 's-w-r - not blocked in subrequest'); |
249 | 249 |
250 # "aio_write" is used to produce "open socket ... left in connection" alerts. | |
251 | |
252 $t->todo_alerts() if $t->read_file('nginx.conf') =~ /aio_write on/ | |
253 and $t->read_file('nginx.conf') =~ /aio threads/ and $^O eq 'freebsd'; | |
254 | |
255 # due to the missing content_handler inheritance in a cloned subrequest, | 250 # due to the missing content_handler inheritance in a cloned subrequest, |
256 # this used to access a static file in the update request | 251 # this used to access a static file in the update request |
257 | 252 |
258 like(http_get('/t2.html?if=1'), qr/STALE/, 'background update in if'); | 253 like(http_get('/t2.html?if=1'), qr/STALE/, 'background update in if'); |
259 like(http_get('/t2.html?if=1'), qr/HIT/, 'background update in if - updated'); | 254 like(http_get('/t2.html?if=1'), qr/HIT/, 'background update in if - updated'); |