Mercurial > hg > nginx-tests
diff worker_shutdown_timeout_h2.t @ 1986:11463d379570
Tests: reworked HTTP/2 tests to use "http2 on".
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 04 Jun 2024 05:08:02 +0300 |
parents | 236d038dc04a |
children |
line wrap: on
line diff
--- a/worker_shutdown_timeout_h2.t +++ b/worker_shutdown_timeout_h2.t @@ -39,9 +39,11 @@ http { %%TEST_GLOBALS_HTTP%% server { - listen 127.0.0.1:8080 http2; + listen 127.0.0.1:8080; server_name localhost; + http2 on; + location / { proxy_pass http://127.0.0.1:8081; proxy_read_timeout 5s; @@ -51,13 +53,7 @@ http { EOF $t->run_daemon(\&http_silent_daemon); - -# suppress deprecation warning - -open OLDERR, ">&", \*STDERR; close STDERR; $t->run(); -open STDERR, ">&", \*OLDERR; - $t->waitforsocket('127.0.0.1:' . port(8081)); ###############################################################################