Mercurial > hg > nginx-tests
comparison stream_geo_ipv6.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 | fcd65708672d |
children | 766bcbb632ee |
comparison
equal
deleted
inserted
replaced
1234:0defcc1c87ab | 1235:3fc6817cd84a |
---|---|
88 | 88 |
89 $t->try_run('no stream geo or inet6 support')->plan(6); | 89 $t->try_run('no stream geo or inet6 support')->plan(6); |
90 | 90 |
91 ############################################################################### | 91 ############################################################################### |
92 | 92 |
93 my %data = stream()->read() =~ /(\w+):(\w+)/g; | 93 my %data = stream('127.0.0.1:' . port(8080))->read() =~ /(\w+):(\w+)/g; |
94 is($data{geo}, 'loopback', 'geo ipv6'); | 94 is($data{geo}, 'loopback', 'geo ipv6'); |
95 is($data{geo_delete}, 'world', 'geo ipv6 delete'); | 95 is($data{geo_delete}, 'world', 'geo ipv6 delete'); |
96 is($data{geo_var}, 'default', 'geo ipv6 from variable'); | 96 is($data{geo_var}, 'default', 'geo ipv6 from variable'); |
97 is($data{geo_var_ranges}, 'default', 'geo ipv6 from variable range'); | 97 is($data{geo_var_ranges}, 'default', 'geo ipv6 from variable range'); |
98 | 98 |