comparison js_subrequests.t @ 1553:01867708af95

Tests: adjusted todo_alerts() in js_subrequest.t.
author Dmitry Volyntsev <xeioex@nginx.com>
date Mon, 02 Mar 2020 19:46:52 +0300
parents cde406e61e48
children cae83c98654a
comparison
equal deleted inserted replaced
1552:3b6b2667ece9 1553:01867708af95
476 'sr_options_method_head'); 476 'sr_options_method_head');
477 is(get_json('/sr_body'), '{"a":{"b":1}}', 'sr_body'); 477 is(get_json('/sr_body'), '{"a":{"b":1}}', 'sr_body');
478 is(get_json('/sr_body_special'), '{"e":"msg"}', 'sr_body_special'); 478 is(get_json('/sr_body_special'), '{"e":"msg"}', 'sr_body_special');
479 is(get_json('/sr_in_variable_handler'), '["CB-VAR"]', 'sr_in_variable_handler'); 479 is(get_json('/sr_in_variable_handler'), '["CB-VAR"]', 'sr_in_variable_handler');
480 480
481 $t->todo_alerts() if $t->read_file('nginx.conf') =~ /aio (on|threads)/; 481 $t->todo_alerts() if $t->read_file('nginx.conf') =~ /aio (on|threads)/
482 and !$t->has_version('1.17.9');
482 483
483 TODO: { 484 TODO: {
484 local $TODO = 'header already sent' if $t->read_file('nginx.conf') =~ /aio on/; 485 local $TODO = 'header already sent' if $t->read_file('nginx.conf') =~ /aio on/
485 local $TODO = 'open socket left' if $t->read_file('nginx.conf') =~ /aio thread/; 486 and !$t->has_version('1.17.9');
487 local $TODO = 'open socket left' if $t->read_file('nginx.conf') =~ /aio thread/
488 and !$t->has_version('1.17.9');
486 489
487 is(get_json('/sr_file'), '["SEE-THIS"]', 'sr_file'); 490 is(get_json('/sr_file'), '["SEE-THIS"]', 'sr_file');
488 491
489 } 492 }
490 493