changeset 1786:cadf15e2e2b3

Tests: adjusted stream_js_fetch.t TODO for njs 0.7.6 and older.
author Dmitry Volyntsev <xeioex@nginx.com>
date Thu, 25 Aug 2022 16:53:08 -0700
parents 2c08bfffe112
children e55aa7021ea5
files stream_js_fetch.t
diffstat 1 files changed, 8 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/stream_js_fetch.t
+++ b/stream_js_fetch.t
@@ -154,21 +154,19 @@ is(stream('127.0.0.1:' . port(8081))->io
 is(stream('127.0.0.1:' . port(8081))->io("\xAB\xCDQQ##"), '',
 	'preread validation failed');
 
+TODO: {
+todo_skip 'leaves coredump', 3 unless $ENV{TEST_NGINX_UNSAFE}
+	or http_get('/njs') =~ /^([.0-9]+)$/m && $1 ge '0.7.7';
+
+my $s = stream('127.0.0.1:' . port(8082));
+is($s->io("\xAB\xCDQZ##", read => 1), '##', 'filter validated');
+is($s->io("@@", read => 1), '@@', 'filter off');
+
 is(stream('127.0.0.1:' . port(8082))->io("\xAB\xCDQQ##"), '',
 	'filter validation failed');
 
-my $s = stream('127.0.0.1:' . port(8082));
-
-TODO: {
-local $TODO = 'not yet'
-	unless http_get('/njs') =~ /^([.0-9]+)$/m && $1 ge '0.7.7';
-
-is($s->io("\xAB\xCDQZ##", read => 1), '##', 'filter validated');
-
 }
 
-is($s->io("@@", read => 1), '@@', 'filter off');
-
 ###############################################################################
 
 sub stream_daemon {