Mercurial > hg > nginx-tests
diff stream_geoip.t @ 1064:6508aa1cf9cb
Tests: skip geoip tests on hosts without GeoIP IPv6 support.
author | Andrey Zelenkov <zelenkov@nginx.com> |
---|---|
date | Wed, 19 Oct 2016 20:55:19 +0300 |
parents | f1cc64e4e67d |
children | cf14cfe9ec8c |
line wrap: on
line diff
--- a/stream_geoip.t +++ b/stream_geoip.t @@ -26,7 +26,7 @@ select STDERR; $| = 1; select STDOUT; $| = 1; my $t = Test::Nginx->new()->has(qw/stream stream_geoip stream_return ipv6/) - ->has('stream_realip')->plan(20); + ->has('stream_realip'); $t->write_file_expand('nginx.conf', <<'EOF'); @@ -142,7 +142,7 @@ for my $i (0 .. 31) { $data .= pack_node(32); $t->write_file('org.dat', $data); -$t->run(); +$t->try_run('no inet6 support')->plan(20); ###############################################################################