Mercurial > hg > nginx-tests
comparison stream_status_variable.t @ 1231:5ceb07e20515
Tests: fixed race in stream_status_variable.t on exit.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 17 Oct 2017 13:10:31 +0300 |
parents | 6979619de0e3 |
children | 766bcbb632ee |
comparison
equal
deleted
inserted
replaced
1230:a3d23d16712d | 1231:5ceb07e20515 |
---|---|
92 stream('127.0.0.1:' . port(8082))->read(); | 92 stream('127.0.0.1:' . port(8082))->read(); |
93 stream('127.0.0.1:' . port(8084))->read(); | 93 stream('127.0.0.1:' . port(8084))->read(); |
94 | 94 |
95 my $s = stream('127.0.0.1:' . port(8085)); | 95 my $s = stream('127.0.0.1:' . port(8085)); |
96 stream('127.0.0.1:' . port(8085))->read(); | 96 stream('127.0.0.1:' . port(8085))->read(); |
97 undef $s; | 97 $s->io('PROXY INVALID'); |
98 | 98 |
99 $t->stop(); | 99 $t->stop(); |
100 | 100 |
101 is($t->read_file('200.log'), "200\n", 'stream status 200'); | 101 is($t->read_file('200.log'), "200\n", 'stream status 200'); |
102 is($t->read_file('400.log'), "400\n", 'stream status 400'); | 102 is($t->read_file('400.log'), "400\n", 'stream status 400'); |