# HG changeset patch # User Dmitry Volyntsev # Date 1574444703 -10800 # Node ID 41dcbcf3381a648dd3771418a58963de0d347b63 # Parent 9d5996c3f5b86a1af8e3fd6c0b06633424e9e6ca Tests: adapted js_subrequests.t to njs changes after 0.3.7. diff --git a/js_subrequests.t b/js_subrequests.t --- a/js_subrequests.t +++ b/js_subrequests.t @@ -147,10 +147,6 @@ http { js_content sr_except_invalid_options_header_only; } - location /sr_js_in_sr_parent { - js_content sr_js_in_sr_parent; - } - location /sr_in_sr_callback { js_content sr_in_sr_callback; } @@ -375,10 +371,6 @@ EOF r.subrequest('/js_sub', body_fwd_cb); } - function sr_js_in_sr_parent(r) { - r.subrequest('/sr_parent', body_fwd_cb); - } - function sr_in_sr_callback(r) { r.subrequest('/return', function (reply) { try { @@ -468,7 +460,7 @@ EOF $t->write_file('t', '["SEE-THIS"]'); -$t->try_run('no njs available')->plan(25); +$t->try_run('no njs available')->plan(24); $t->run_daemon(\&http_daemon); ############################################################################### @@ -526,10 +518,6 @@ http_get('/sr_except_failed_to_convert_a http_get('/sr_except_failed_to_convert_options_arg'); http_get('/sr_uri_except'); -is(get_json('/sr_js_in_sr_parent'), - '{"e":"parent can only be returned for a subrequest"}', - 'parent in subrequest js_content'); - is(get_json('/sr_in_sr_callback'), '{"e":"subrequest can only be created for the primary request"}', 'subrequest for non-primary request');