Mercurial > hg > nginx-tests
comparison stream_upstream.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 | a073a545413d |
children | 875967f737d4 |
comparison
equal
deleted
inserted
replaced
1250:b708848eb49a | 1251:766bcbb632ee |
---|---|
87 | 87 |
88 EOF | 88 EOF |
89 | 89 |
90 $t->run_daemon(\&stream_daemon, port(8084)); | 90 $t->run_daemon(\&stream_daemon, port(8084)); |
91 $t->run_daemon(\&stream_daemon, port(8085)); | 91 $t->run_daemon(\&stream_daemon, port(8085)); |
92 $t->try_run('no stream access_log')->plan(6); | 92 $t->run()->plan(6); |
93 | 93 |
94 $t->waitforsocket('127.0.0.1:' . port(8084)); | 94 $t->waitforsocket('127.0.0.1:' . port(8084)); |
95 $t->waitforsocket('127.0.0.1:' . port(8085)); | 95 $t->waitforsocket('127.0.0.1:' . port(8085)); |
96 | 96 |
97 ############################################################################### | 97 ############################################################################### |
104 is(many(30, port(8083)), "$port4: 30", 'backup'); | 104 is(many(30, port(8083)), "$port4: 30", 'backup'); |
105 | 105 |
106 $t->run_daemon(\&stream_daemon, port(8086)); | 106 $t->run_daemon(\&stream_daemon, port(8086)); |
107 $t->waitforsocket('127.0.0.1:' . port(8086)); | 107 $t->waitforsocket('127.0.0.1:' . port(8086)); |
108 | 108 |
109 TODO: { | |
110 local $TODO = 'not yet' unless $t->has_version('1.11.8'); | |
111 | |
112 sleep 2; # wait till fail_timeout passes | 109 sleep 2; # wait till fail_timeout passes |
113 is(parallel(30, port(8083)), "$port6: 30", 'recovery'); | 110 is(parallel(30, port(8083)), "$port6: 30", 'recovery'); |
114 | |
115 } | |
116 | 111 |
117 $t->stop(); | 112 $t->stop(); |
118 | 113 |
119 like($t->read_file('u.log'), qr/127.0.0.1:$port6, 127.0.0.1:$port4!0, 1!0, 4/, | 114 like($t->read_file('u.log'), qr/127.0.0.1:$port6, 127.0.0.1:$port4!0, 1!0, 4/, |
120 'per-upstream variables'); | 115 'per-upstream variables'); |