Mercurial > hg > nginx-tests
comparison h2.t @ 1107:d42cc683970d
Tests: skip unsafe HTTP/2 tests.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Wed, 04 Jan 2017 15:08:26 +0300 |
parents | f72f43eda2a6 |
children | ff1a37f37419 |
comparison
equal
deleted
inserted
replaced
1106:4b0b10e39a08 | 1107:d42cc683970d |
---|---|
767 | 767 |
768 } | 768 } |
769 | 769 |
770 # ask write handler in sending large response | 770 # ask write handler in sending large response |
771 | 771 |
772 SKIP: { | |
773 skip 'unsafe socket tests', 4 unless $ENV{TEST_NGINX_UNSAFE}; | |
774 | |
772 $sid = $s->new_stream({ path => '/tbig.html' }); | 775 $sid = $s->new_stream({ path => '/tbig.html' }); |
773 | 776 |
774 $s->h2_window(2**30, $sid); | 777 $s->h2_window(2**30, $sid); |
775 $s->h2_window(2**30); | 778 $s->h2_window(2**30); |
776 | 779 |
803 | 806 |
804 $s->h2_ping('SEE-THIS'); | 807 $s->h2_ping('SEE-THIS'); |
805 | 808 |
806 $frames = $s->read(all => [{ type => 'PING' }]); | 809 $frames = $s->read(all => [{ type => 'PING' }]); |
807 ok(!grep ({ $_->{type} eq "PING" } @$frames), 'large response - send timeout'); | 810 ok(!grep ({ $_->{type} eq "PING" } @$frames), 'large response - send timeout'); |
811 | |
812 } | |
808 | 813 |
809 # stream with large response queued on write - RST_STREAM handling | 814 # stream with large response queued on write - RST_STREAM handling |
810 | 815 |
811 $s = Test::Nginx::HTTP2->new(); | 816 $s = Test::Nginx::HTTP2->new(); |
812 $sid = $s->new_stream({ path => '/tbig.html' }); | 817 $sid = $s->new_stream({ path => '/tbig.html' }); |