comparison stream_geo.t @ 1235:3fc6817cd84a

Tests: explicit peer port in stream tests now required. Notably, this eliminates extra port acquire for the default port number in cases when it was not actually used.
author Andrey Zelenkov <zelenkov@nginx.com>
date Thu, 26 Oct 2017 16:36:13 +0300
parents 1fe8d33f75ad
children 766bcbb632ee
comparison
equal deleted inserted replaced
1234:0defcc1c87ab 1235:3fc6817cd84a
221 221
222 $t->try_run('no stream geo')->plan(19); 222 $t->try_run('no stream geo')->plan(19);
223 223
224 ############################################################################### 224 ###############################################################################
225 225
226 my %data = stream()->read() =~ /(\w+):(\w+)/g; 226 my %data = stream('127.0.0.1:' . port(8080))->read() =~ /(\w+):(\w+)/g;
227 is($data{geo}, 'loopback', 'geo'); 227 is($data{geo}, 'loopback', 'geo');
228 is($data{geo_include}, 'loopback', 'geo include'); 228 is($data{geo_include}, 'loopback', 'geo include');
229 is($data{geo_delete}, 'world', 'geo delete'); 229 is($data{geo_delete}, 'world', 'geo delete');
230 is($data{geo_ranges}, 'loopback', 'geo ranges'); 230 is($data{geo_ranges}, 'loopback', 'geo ranges');
231 is($data{geo_ranges_include}, 'loopback', 'geo ranges include'); 231 is($data{geo_ranges_include}, 'loopback', 'geo ranges include');