diff spdy.t @ 397:847ea345becb

Tests: removed TODO and try_run() checks for legacy versions.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 05 May 2014 11:46:01 +0400
parents f42de3a9fd74
children 5c25acbc870a
line wrap: on
line diff
--- a/spdy.t
+++ b/spdy.t
@@ -36,8 +36,6 @@ plan(skip_all => 'win32') if $^O eq 'MSW
 
 my $t = Test::Nginx->new()->has(qw/http proxy cache limit_conn rewrite spdy/);
 
-plan(skip_all => 'no SPDY/3.1') unless $t->has_version('1.5.10');
-
 $t->plan(72)->write_file_expand('nginx.conf', <<'EOF');
 
 %%TEST_GLOBALS%%
@@ -389,9 +387,6 @@ is($frame->{data}, 7, 'priority 7');
 
 # stream muliplexing + priority
 
-TODO: {
-local $TODO = 'reversed priority' unless $t->has_version('1.5.11');
-
 $sess = new_session();
 $sid1 = spdy_stream($sess, { path => '/t1.html', prio => 7 });
 $sid2 = spdy_stream($sess, { path => '/t2.html', prio => 0 });
@@ -428,8 +423,6 @@ spdy_window($sess, 2**17);
 @data = grep { $_->{type} eq "DATA" } @$frames;
 is(join (' ', map { $_->{sid} } @data), "$sid1 $sid2", 'multiple priority 2');
 
-}
-
 # limit_conn
 
 $sess = new_session();
@@ -520,9 +513,6 @@ is($frame->{sid}, $sid1, 'dup stream - s
 
 # awkward protocol version
 
-TODO: {
-local $TODO = 'not yet' unless $t->has_version('1.5.11');
-
 $sess = new_session();
 $sid1 = spdy_stream($sess, { path => '/s', version => 'HTTP/1.10' });
 $frames = spdy_read($sess, all => [{ sid => $sid1, fin => 1 }]);
@@ -530,8 +520,6 @@ local $TODO = 'not yet' unless $t->has_v
 ($frame) = grep { $_->{type} eq "SYN_REPLY" } @$frames;
 is($frame->{headers}->{':status'}, 200, 'awkward version');
 
-}
-
 # missing mandatory request header
 
 $sess = new_session();