Mercurial > hg > nginx-tests
diff grpc_next_upstream.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/grpc_next_upstream.t +++ b/grpc_next_upstream.t @@ -69,9 +69,11 @@ http { } server { - listen 127.0.0.1:8081 http2; + listen 127.0.0.1:8081; server_name localhost; + http2 on; + location / { return 404; } @@ -91,9 +93,11 @@ http { } server { - listen 127.0.0.1:8082 http2; + listen 127.0.0.1:8082; server_name localhost; + http2 on; + location / { return 200 "TEST-OK-IF-YOU-SEE-THIS\n"; } @@ -106,11 +110,7 @@ http { EOF -# suppress deprecation warning - -open OLDERR, ">&", \*STDERR; close STDERR; $t->run(); -open STDERR, ">&", \*OLDERR; ###############################################################################