From: Dmitry Volyntsev Date: Fri, 19 Jul 2024 05:37:25 +0000 (-0700) Subject: Tests: making exception test more portable in js.t. X-Git-Tag: 0.8.6~29 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=29c71bf771a30e8120bf332f240c14257000dd05;p=njs.git Tests: making exception test more portable in js.t. --- 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'); ###############################################################################