Mercurial > hg > nginx-tests
diff 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 |
line wrap: on
line diff
--- a/ssl_proxy_upgrade.t +++ b/ssl_proxy_upgrade.t @@ -164,7 +164,7 @@ open my $f, '<', "$d/cc.log" or die "Can is($f->getline(), shift (@r) . " 540793\n", 'log - bytes'); is($f->getline(), shift (@r) . " 22\n", 'log - bytes pipelined'); -is($f->getline(), "0 0\n", 'log - bytes noupgrade'); +like($f->getline(), qr/\d+ 0\n/, 'log - bytes noupgrade'); ###############################################################################