changeset 1466:95951c72e721

Tests: use TODO for js_subrequests.t sr_file + aio test.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 22 Apr 2019 14:45:45 +0300
parents 93633a10e33d
children 2be630357aa7
files js_subrequests.t
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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');