Changeset 1319:3b30e97acdcb in nginx-tests


Ignore:
Timestamp:
04/06/18 12:06:16 (2 years ago)
Author:
Sergey Kandaurov <pluknet@…>
Branch:
default
Phase:
public
Message:

Tests: made grpc preserve output test pass on win32 and Solaris.

The tested response body length was reduced to not step on partial write,
which is a subject for these platforms due to a small socket buffer size.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • grpc.t

    r1318 r1319  
    367367my @data = grep { $_->{type} eq "DATA" } @$frames;
    368368$sum = eval join '+', map { $_->{length} } @data;
    369 is($sum, 163840, 'preserve - DATA');
     369is($sum, 20480, 'preserve - DATA');
    370370
    371371(undef, $frame) = grep { $_->{type} eq "HEADERS" } @$frames;
     
    525525        $f->{http_pres} = sub {
    526526                my (%extra) = @_;
     527                $s->h2_settings(0, 0x4 => 8192);
    527528                $c->new_stream({ body_more => 1, %extra, headers => [
    528529                        { name => ':status', value => '200',
     
    534535                ]}, $sid);
    535536                for (1 .. 20) {
    536                         $c->h2_body(sprintf('Hello %02d', $_) x 1024, {
     537                        $c->h2_body(sprintf('Hello %02d', $_) x 128, {
    537538                                body_more => 1,
    538539                                body_padding => $extra{body_padding} });
     
    549550                ]}, $sid);
    550551
    551                 return $s->read(all => [{ fin => 1 }]);
     552                return $s->read(all => [{ sid => $csid, fin => 1 }]);
    552553        };
    553554        $f->{http_err} = sub {
Note: See TracChangeset for help on using the changeset viewer.