comparison proxy_cache_lock_age.t @ 974:882267679006

Tests: simplified parallel modifications in tests. Mail tests were simplified in c227348453db.
author Andrey Zelenkov <zelenkov@nginx.com>
date Tue, 12 Jul 2016 17:39:03 +0300
parents e9064d691790
children 196d33c2bb45
comparison
equal deleted inserted replaced
973:7d7aef8b9f3a 974:882267679006
39 39
40 proxy_cache_path %%TESTDIR%%/cache levels=1:2 40 proxy_cache_path %%TESTDIR%%/cache levels=1:2
41 keys_zone=NAME:1m; 41 keys_zone=NAME:1m;
42 42
43 server { 43 server {
44 listen 127.0.0.1:%%PORT_0%%; 44 listen 127.0.0.1:8080;
45 server_name localhost; 45 server_name localhost;
46 46
47 location / { 47 location / {
48 proxy_pass http://127.0.0.1:%%PORT_1%%; 48 proxy_pass http://127.0.0.1:8081;
49 proxy_cache NAME; 49 proxy_cache NAME;
50 50
51 proxy_cache_lock on; 51 proxy_cache_lock on;
52 proxy_cache_lock_age 100ms; 52 proxy_cache_lock_age 100ms;
53 } 53 }
54 } 54 }
55 } 55 }
56 56
57 EOF 57 EOF
58 58
59 $t->run_daemon(\&http_daemon, port(1)); 59 $t->run_daemon(\&http_daemon, port(8081));
60 $t->run()->waitforsocket('127.0.0.1:' . port(1)); 60 $t->run()->waitforsocket('127.0.0.1:' . port(8081));
61 61
62 ############################################################################### 62 ###############################################################################
63 63
64 my $s = http_get('/', start => 1); 64 my $s = http_get('/', start => 1);
65 65