From 29c71bf771a30e8120bf332f240c14257000dd05 Mon Sep 17 00:00:00 2001 From: Dmitry Volyntsev Date: Thu, 18 Jul 2024 22:37:25 -0700 Subject: [PATCH] Tests: making exception test more portable in js.t. --- nginx/t/js.t | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/nginx/t/js.t b/nginx/t/js.t index 1e4a07b6..b7dfe3e6 100644 --- a/nginx/t/js.t +++ b/nginx/t/js.t @@ -260,13 +260,11 @@ $t->write_file('test.js', <stop(); ok(index($t->read_file('error.log'), 'SEE-LOG') > 0, 'log js'); -ok(index($t->read_file('error.log'), 'at fs.readFileSync') > 0, +ok(index($t->read_file('error.log'), 'at decodeURI') > 0, 'js_set backtrace'); -ok(index($t->read_file('error.log'), 'at JSON.parse') > 0, +ok(index($t->read_file('error.log'), 'at content_except') > 0, 'js_content backtrace'); ############################################################################### -- 2.47.3