Mercurial > hg > nginx-tests
comparison ssl_proxy_upgrade.t @ 665:3a8dc14b98ba
Tests: fixed Upgrade handling tests without client abort detection.
Ignore bytes sent on non-upgraded connection, which may be non-zero
if client connection close was not detected.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 27 Aug 2015 13:33:41 +0300 |
parents | 1177e4dd249a |
children | 6bb1f2ccd386 |
comparison
equal
deleted
inserted
replaced
664:97660514e518 | 665:3a8dc14b98ba |
---|---|
162 | 162 |
163 open my $f, '<', "$d/cc.log" or die "Can't open cc.log: $!"; | 163 open my $f, '<', "$d/cc.log" or die "Can't open cc.log: $!"; |
164 | 164 |
165 is($f->getline(), shift (@r) . " 540793\n", 'log - bytes'); | 165 is($f->getline(), shift (@r) . " 540793\n", 'log - bytes'); |
166 is($f->getline(), shift (@r) . " 22\n", 'log - bytes pipelined'); | 166 is($f->getline(), shift (@r) . " 22\n", 'log - bytes pipelined'); |
167 is($f->getline(), "0 0\n", 'log - bytes noupgrade'); | 167 like($f->getline(), qr/\d+ 0\n/, 'log - bytes noupgrade'); |
168 | 168 |
169 ############################################################################### | 169 ############################################################################### |
170 | 170 |
171 sub upgrade_connect { | 171 sub upgrade_connect { |
172 my (%opts) = @_; | 172 my (%opts) = @_; |