Mercurial > hg > nginx-tests
comparison stream_geo_binary.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 | 3fc6817cd84a |
children | f3ba4c74de31 |
comparison
equal
deleted
inserted
replaced
1250:b708848eb49a | 1251:766bcbb632ee |
---|---|
59 $t->write_file('base.conf', join('', map { | 59 $t->write_file('base.conf', join('', map { |
60 "127." . $_/256/256 % 256 . "." . $_/256 % 256 . "." . $_ % 256 . | 60 "127." . $_/256/256 % 256 . "." . $_/256 % 256 . "." . $_ % 256 . |
61 "-127." . $_/256/256 % 256 . "." . $_/256 % 256 . "." .$_ % 256 . " " . | 61 "-127." . $_/256/256 % 256 . "." . $_/256 % 256 . "." .$_ % 256 . " " . |
62 ($_ == 1 ? "loopback" : "range$_") . ";" } (0 .. 100000))); | 62 ($_ == 1 ? "loopback" : "range$_") . ";" } (0 .. 100000))); |
63 | 63 |
64 $t->try_run('no stream geo')->plan(2); | 64 $t->run()->plan(2); |
65 | 65 |
66 ############################################################################### | 66 ############################################################################### |
67 | 67 |
68 my %data = stream('127.0.0.1:' . port(8080))->read() =~ /(\w+):(\w+)/g; | 68 my %data = stream('127.0.0.1:' . port(8080))->read() =~ /(\w+):(\w+)/g; |
69 is($data{geo_base_create}, 'loopback', 'geo binary base create'); | 69 is($data{geo_base_create}, 'loopback', 'geo binary base create'); |