Mercurial > hg > nginx-tests
diff worker_shutdown_timeout_h2.t @ 1900:236d038dc04a
Tests: suppress "listen .. http2;" deprecation warnings.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Wed, 31 May 2023 13:29:34 +0400 |
parents | 5ac6efbe5552 |
children |
line wrap: on
line diff
--- a/worker_shutdown_timeout_h2.t +++ b/worker_shutdown_timeout_h2.t @@ -51,7 +51,14 @@ http { EOF $t->run_daemon(\&http_silent_daemon); -$t->run()->waitforsocket('127.0.0.1:' . port(8081)); + +# suppress deprecation warning + +open OLDERR, ">&", \*STDERR; close STDERR; +$t->run(); +open STDERR, ">&", \*OLDERR; + +$t->waitforsocket('127.0.0.1:' . port(8081)); ###############################################################################