comparison js_subrequests.t @ 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 9d8b100a6ce3
children 34e86a28cabd
comparison
equal deleted inserted replaced
1465:93633a10e33d 1466:95951c72e721
489 is(get_json('/sr_options_method_head'), '{"c":200,"s":0}', 489 is(get_json('/sr_options_method_head'), '{"c":200,"s":0}',
490 'sr_options_method_head'); 490 'sr_options_method_head');
491 is(get_json('/sr_body'), '{"a":{"b":1}}', 'sr_body'); 491 is(get_json('/sr_body'), '{"a":{"b":1}}', 'sr_body');
492 is(get_json('/sr_body_special'), '{"e":"msg"}', 'sr_body_special'); 492 is(get_json('/sr_body_special'), '{"e":"msg"}', 'sr_body_special');
493 is(get_json('/sr_in_variable_handler'), '["CB-VAR"]', 'sr_in_variable_handler'); 493 is(get_json('/sr_in_variable_handler'), '["CB-VAR"]', 'sr_in_variable_handler');
494
495 $t->todo_alerts() if $t->read_file('nginx.conf') =~ /aio (on|threads)/;
496
497 TODO: {
498 local $TODO = 'header already sent' if $t->read_file('nginx.conf') =~ /aio on/;
499 local $TODO = 'open socket left' if $t->read_file('nginx.conf') =~ /aio thread/;
500
494 is(get_json('/sr_file'), '["SEE-THIS"]', 'sr_file'); 501 is(get_json('/sr_file'), '["SEE-THIS"]', 'sr_file');
502
503 }
504
495 is(get_json('/sr_cache?c=1'), '["SEE-THIS"]', 'sr_cache'); 505 is(get_json('/sr_cache?c=1'), '["SEE-THIS"]', 'sr_cache');
496 is(get_json('/sr_cache?c=1'), '["SEE-THIS"]', 'sr_cached'); 506 is(get_json('/sr_cache?c=1'), '["SEE-THIS"]', 'sr_cached');
497 is(get_json('/sr_js_in_subrequest'), '["JS-SUB"]', 'sr_js_in_subrequest'); 507 is(get_json('/sr_js_in_subrequest'), '["JS-SUB"]', 'sr_js_in_subrequest');
498 is(get_json('/sr_unavail'), '[{"status":502,"uri":"/unavail"}]', 508 is(get_json('/sr_unavail'), '[{"status":502,"uri":"/unavail"}]',
499 'sr_unavail'); 509 'sr_unavail');