Mercurial > hg > nginx-tests
comparison h2_cache.t @ 952:e9064d691790
Tests: converted tests to run in parallel.
author | Andrey Zelenkov <zelenkov@nginx.com> |
---|---|
date | Tue, 21 Jun 2016 16:39:13 +0300 |
parents | 4dc302d8e04f |
children | 882267679006 |
comparison
equal
deleted
inserted
replaced
951:9361c7eddfc1 | 952:e9064d691790 |
---|---|
37 %%TEST_GLOBALS_HTTP%% | 37 %%TEST_GLOBALS_HTTP%% |
38 | 38 |
39 proxy_cache_path %%TESTDIR%%/cache keys_zone=NAME:1m; | 39 proxy_cache_path %%TESTDIR%%/cache keys_zone=NAME:1m; |
40 | 40 |
41 server { | 41 server { |
42 listen 127.0.0.1:8080 http2; | 42 listen 127.0.0.1:%%PORT_0%% http2; |
43 listen 127.0.0.1:8081; | 43 listen 127.0.0.1:%%PORT_1%%; |
44 server_name localhost; | 44 server_name localhost; |
45 | 45 |
46 location /cache { | 46 location /cache { |
47 proxy_pass http://127.0.0.1:8081/; | 47 proxy_pass http://127.0.0.1:%%PORT_1%%/; |
48 proxy_cache NAME; | 48 proxy_cache NAME; |
49 proxy_cache_valid 1m; | 49 proxy_cache_valid 1m; |
50 } | 50 } |
51 location /proxy_buffering_off { | 51 location /proxy_buffering_off { |
52 proxy_pass http://127.0.0.1:8081/; | 52 proxy_pass http://127.0.0.1:%%PORT_1%%/; |
53 proxy_cache NAME; | 53 proxy_cache NAME; |
54 proxy_cache_valid 1m; | 54 proxy_cache_valid 1m; |
55 proxy_buffering off; | 55 proxy_buffering off; |
56 } | 56 } |
57 } | 57 } |