From 9becf2164e9b67a2e35c1d8e6b941976179e6d04 Mon Sep 17 00:00:00 2001 From: Eugene Grebenschikov Date: Thu, 12 Mar 2026 15:42:11 -0700 Subject: [PATCH 1/2] Tests: removed unsafe check for geo binary tests. --- geo_binary.t | 2 -- stream_geo_binary.t | 2 -- 2 files changed, 4 deletions(-) diff --git a/geo_binary.t b/geo_binary.t index 52dd58f8..52da363b 100644 --- a/geo_binary.t +++ b/geo_binary.t @@ -22,8 +22,6 @@ use Test::Nginx; select STDERR; $| = 1; select STDOUT; $| = 1; -plan(skip_all => 'long configuration parsing') unless $ENV{TEST_NGINX_UNSAFE}; - my $t = Test::Nginx->new()->has(qw/http geo/); $t->write_file_expand('nginx.conf', <<'EOF'); diff --git a/stream_geo_binary.t b/stream_geo_binary.t index cb2f5948..433acce7 100644 --- a/stream_geo_binary.t +++ b/stream_geo_binary.t @@ -23,8 +23,6 @@ use Test::Nginx::Stream qw/ stream /; select STDERR; $| = 1; select STDOUT; $| = 1; -plan(skip_all => 'long configuration parsing') unless $ENV{TEST_NGINX_UNSAFE}; - my $t = Test::Nginx->new()->has(qw/stream stream_return stream_geo/); $t->write_file_expand('nginx.conf', <<'EOF'); From 6532db54eedc83c181ad5b4001bb362294d8d075 Mon Sep 17 00:00:00 2001 From: Eugene Grebenschikov Date: Thu, 12 Mar 2026 16:46:35 -0700 Subject: [PATCH 2/2] Tests: using filename mask in get.t and stream_geo.t. --- geo.t | 2 ++ stream_geo.t | 2 ++ 2 files changed, 4 insertions(+) diff --git a/geo.t b/geo.t index 95e384b9..21276c70 100644 --- a/geo.t +++ b/geo.t @@ -189,6 +189,8 @@ http { EOF +$t->write_file('nginx.conf', $t->read_file('nginx.conf') =~ s/ geo\./ *geo./gr) + if $t->has_version('1.29.8'); $t->write_file('1', ''); $t->write_file('2', ''); $t->write_file('geo.conf', '127.0.0.0/8 loopback;'); diff --git a/stream_geo.t b/stream_geo.t index be99b109..86cf1645 100644 --- a/stream_geo.t +++ b/stream_geo.t @@ -218,6 +218,8 @@ stream { EOF +$t->write_file('nginx.conf', $t->read_file('nginx.conf') =~ s/ geo\./ *geo./gr) + if $t->has_version('1.29.8'); $t->write_file('geo.conf', '127.0.0.0/8 loopback;'); $t->write_file('geo-ranges.conf', '127.0.0.0-127.255.255.255 loopback;');