changeset 1652:21f511a7f5c3

Tests: compatibility with http2_max_requests removal.
author Sergey Kandaurov <pluknet@nginx.com>
date Wed, 10 Feb 2021 15:13:22 +0300
parents a78eedc39484
children 259dfb223f9a
files h2_max_requests.t
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/h2_max_requests.t
+++ b/h2_max_requests.t
@@ -43,6 +43,7 @@ http {
         server_name  localhost;
 
         http2_max_requests 2;
+        keepalive_requests 2;
 
         location / { }
     }
@@ -51,7 +52,12 @@ http {
 EOF
 
 $t->write_file('index.html', 'SEE-THAT' x 50000);
+
+# suppress deprecation warning
+
+open OLDERR, ">&", \*STDERR; close STDERR;
 $t->run()->plan(10);
+open STDERR, ">&", \*OLDERR;
 
 ###############################################################################