comparison proxy_cache_error.t @ 1408:51656beb9996

Tests: adjusted proxy_cache_error.t read timeout. A previous limit could not be enough to get response header on slow hosts. It is encreased to still catch alerts on old versions before 93abb5a855d6.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 03 Dec 2018 14:25:40 +0300
parents 97c8280de681
children 4f238efded81
comparison
equal deleted inserted replaced
1407:8c764fd93b5e 1408:51656beb9996
44 44
45 location / { 45 location / {
46 proxy_pass http://127.0.0.1:8081; 46 proxy_pass http://127.0.0.1:8081;
47 proxy_cache NAME; 47 proxy_cache NAME;
48 48
49 proxy_read_timeout 100ms; 49 proxy_read_timeout 500ms;
50 } 50 }
51 } 51 }
52 52
53 server { 53 server {
54 listen 127.0.0.1:8081; 54 listen 127.0.0.1:8081;
68 68
69 $t->run(); 69 $t->run();
70 70
71 ############################################################################### 71 ###############################################################################
72 72
73 # make a HEAD request; as cache is enabled, nginx convert HEAD to GET 73 # make a HEAD request; since cache is enabled, nginx converts HEAD to GET
74 # and will set u->pipe->downstream_error to suppress sending the response 74 # and will set u->pipe->downstream_error to suppress sending the response
75 # body to the client 75 # body to the client
76 76
77 like(http_head('/big.html'), qr/200 OK/, 'head request'); 77 like(http_head('/big.html'), qr/200 OK/, 'head request');
78 78