[nginx-tests] Tests: adjusted proxy_noclose.t no content length ...

Maxim Dounin mdounin at mdounin.ru
Fri Aug 28 12:14:31 UTC 2026


details:   http://freenginx.org/hg/nginx-tests/rev/84c77c54e70f
branches:  
changeset: 2091:84c77c54e70f
user:      Maxim Dounin <mdounin at mdounin.ru>
date:      Fri Aug 28 15:08:44 2026 +0300
description:
Tests: adjusted proxy_noclose.t no content length test.

Partially read event pipe buffers are now flushed on read timeouts, so
the test finally passes.

Also, $SIG{__WARN__} redefinition was removed: it was only needed for
the "content-length actually used" test, which succeeds since
introduction of HTTP/1.1 support in 4126:bba9a5ccc6cd (nginx 1.1.4).

diffstat:

 proxy_noclose.t |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (13 lines):

diff --git a/proxy_noclose.t b/proxy_noclose.t
--- a/proxy_noclose.t
+++ b/proxy_noclose.t
@@ -78,8 +78,7 @@ like(http_get('/multi'), qr/AND-THIS/, '
 like(http_get('/uselen'), qr/SEE-THIS/, 'content-length actually used');
 
 TODO: {
-local $TODO = 'not yet';
-local $SIG{__WARN__} = sub {};
+local $TODO = 'not yet' unless $t->has_version('1.31.4');;
 
 like(http_get('/nolen'), qr/SEE-THIS/, 'bad backend - no content length');
 


More information about the nginx-devel mailing list