# HG changeset patch # User Sergey Kandaurov # Date 1555933545 -10800 # Node ID 95951c72e721777c6ca4a4d5bbe172e97a35a1a2 # Parent 93633a10e33df6c6c26258e84cba992e160ddd69 Tests: use TODO for js_subrequests.t sr_file + aio test. diff --git a/js_subrequests.t b/js_subrequests.t --- a/js_subrequests.t +++ b/js_subrequests.t @@ -491,7 +491,17 @@ is(get_json('/sr_options_method_head'), is(get_json('/sr_body'), '{"a":{"b":1}}', 'sr_body'); is(get_json('/sr_body_special'), '{"e":"msg"}', 'sr_body_special'); is(get_json('/sr_in_variable_handler'), '["CB-VAR"]', 'sr_in_variable_handler'); + +$t->todo_alerts() if $t->read_file('nginx.conf') =~ /aio (on|threads)/; + +TODO: { +local $TODO = 'header already sent' if $t->read_file('nginx.conf') =~ /aio on/; +local $TODO = 'open socket left' if $t->read_file('nginx.conf') =~ /aio thread/; + is(get_json('/sr_file'), '["SEE-THIS"]', 'sr_file'); + +} + is(get_json('/sr_cache?c=1'), '["SEE-THIS"]', 'sr_cache'); is(get_json('/sr_cache?c=1'), '["SEE-THIS"]', 'sr_cached'); is(get_json('/sr_js_in_subrequest'), '["JS-SUB"]', 'sr_js_in_subrequest');