Mercurial > hg > nginx-tests
changeset 1662:7f1579e4372a
Tests: fixed stream js exit tests introduced in 69d71a15d407.
Previously, the tests relied upon the following assumption: two
consecutive syswrite() in stream_daemon will be received as a single
data chunk in stream which is not always the case.
author | Dmitry Volyntsev <xeioex@nginx.com> |
---|---|
date | Sat, 06 Mar 2021 12:21:28 +0000 |
parents | 69d71a15d407 |
children | bf69dcabb856 |
files | stream_js_exit.t |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/stream_js_exit.t Sat Mar 06 11:09:54 2021 +0000 +++ b/stream_js_exit.t Sat Mar 06 12:21:28 2021 +0000 @@ -69,8 +69,6 @@ EOF -my $p = port(8080); - $t->write_file('test.js', <<EOF); function test_njs(r) { r.return(200, njs.version); @@ -140,10 +138,11 @@ log2i("$client $buffer"); + $buffer = $buffer . $buffer; + log2o("$client $buffer"); $client->syswrite($buffer); - $client->syswrite($buffer); close $client; }