diff stream_set.t @ 1693:5ac6efbe5552

Tests: removed TODO and try_run() checks for legacy versions.
author Sergey Kandaurov <pluknet@nginx.com>
date Tue, 01 Jun 2021 16:40:18 +0300
parents f3ba4c74de31
children
line wrap: on
line diff
--- a/stream_set.t
+++ b/stream_set.t
@@ -23,7 +23,8 @@ use Test::Nginx::Stream qw/ stream /;
 select STDERR; $| = 1;
 select STDOUT; $| = 1;
 
-my $t = Test::Nginx->new()->has(qw/stream stream_return stream_set/);
+my $t = Test::Nginx->new()
+	->has(qw/stream stream_return stream_map stream_set/);
 
 $t->write_file_expand('nginx.conf', <<'EOF');
 
@@ -37,7 +38,6 @@ events {
 stream {
     %%TEST_GLOBALS_STREAM%%
 
-
     map 0 $map_var {
         default "original";
     }
@@ -58,7 +58,7 @@ stream {
 
 EOF
 
-$t->try_run('no stream set')->plan(2);
+$t->run()->plan(2);
 
 ###############################################################################