Mercurial > hg > nginx-tests
comparison 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 | a9569f57da98 |
children | 6bb1f2ccd386 |
comparison
equal
deleted
inserted
replaced
664:97660514e518 | 665:3a8dc14b98ba |
---|---|
136 | 136 |
137 open my $f, '<', "$d/cc.log" or die "Can't open cc.log: $!"; | 137 open my $f, '<', "$d/cc.log" or die "Can't open cc.log: $!"; |
138 | 138 |
139 is($f->getline(), shift (@r) . " 540793\n", 'log - bytes'); | 139 is($f->getline(), shift (@r) . " 540793\n", 'log - bytes'); |
140 is($f->getline(), shift (@r) . " 22\n", 'log - bytes pipelined'); | 140 is($f->getline(), shift (@r) . " 22\n", 'log - bytes pipelined'); |
141 is($f->getline(), "0 0\n", 'log - bytes noupgrade'); | 141 like($f->getline(), qr/\d+ 0\n/, 'log - bytes noupgrade'); |
142 | 142 |
143 ############################################################################### | 143 ############################################################################### |
144 | 144 |
145 sub upgrade_connect { | 145 sub upgrade_connect { |
146 my (%opts) = @_; | 146 my (%opts) = @_; |