diff h2_request_body.t @ 1020:196d33c2bb45

Tests: removed TODO and try_run() checks for legacy versions. Also removed now unused spdy.t and shmem prerequisite.
author Andrey Zelenkov <zelenkov@nginx.com>
date Wed, 31 Aug 2016 18:21:07 +0300
parents 882267679006
children efccab043dd3
line wrap: on
line diff
--- a/h2_request_body.t
+++ b/h2_request_body.t
@@ -25,8 +25,6 @@ select STDOUT; $| = 1;
 
 my $t = Test::Nginx->new()->has(qw/http http_v2 proxy/)->plan(42);
 
-$t->todo_alerts() unless $t->has_version('1.9.14');
-
 $t->write_file_expand('nginx.conf', <<'EOF');
 
 %%TEST_GLOBALS%%
@@ -141,22 +139,10 @@ is($frame->{headers}->{'x-length'}, 12,
 ($frame) = grep { $_->{type} eq "HEADERS" } @$frames;
 is($frame->{headers}->{':status'}, 200, 'request body - empty');
 is($frame->{headers}->{'x-length'}, 0, 'request body - empty size');
-
-TODO: {
-local $TODO = 'not yet' unless $t->has_version('1.9.14');
-
 ok($frame->{headers}{'x-body-file'}, 'request body - empty body file');
-
-}
-
-TODO: {
-todo_skip 'empty body file', 1 unless $frame->{headers}{'x-body-file'};
-
 is(read_body_file($frame->{headers}{'x-body-file'}), '',
 	'request body - empty content');
 
-}
-
 # it is expected to avoid adding Content-Length for requests without body
 
 $s = Test::Nginx::HTTP2->new();