Mercurial > hg > nginx-tests
diff js.t @ 1315:890516ca898a
Tests: reverted 3882f8f3b2bc to unbreak with njs 0.1.15.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 02 Apr 2018 19:47:17 +0300 |
parents | 3882f8f3b2bc |
children | f48d2792730e |
line wrap: on
line diff
--- a/js.t +++ b/js.t @@ -178,9 +178,7 @@ EOF } function test_log(req, res) { - req.log("SEE-THIS-LOG"); - req.warn("SEE-THIS-WARN"); - req.error("SEE-THIS-ERROR"); + req.log("SEE-THIS"); } function test_except(req, res) { @@ -263,7 +261,7 @@ EOF EOF -$t->try_run('no njs available')->plan(24); +$t->try_run('no njs available')->plan(22); ############################################################################### @@ -304,9 +302,7 @@ like(http_get('/res_ihdr'), qr/\x0d\x0a? $t->stop(); -ok(index($t->read_file('error.log'), 'SEE-THIS-LOG') > 0, 'log js'); -ok(index($t->read_file('error.log'), 'SEE-THIS-WARN') > 0, 'warn js'); -ok(index($t->read_file('error.log'), 'SEE-THIS-ERROR') > 0, 'error js'); +ok(index($t->read_file('error.log'), 'SEE-THIS') > 0, 'log js'); ok(index($t->read_file('error.log'), 'at fs.readFileSync') > 0, 'js_set backtrace'); ok(index($t->read_file('error.log'), 'at JSON.parse') > 0,