summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Jung <rjung@apache.org>2024-04-05 00:46:59 +0200
committerRainer Jung <rjung@apache.org>2024-04-05 00:46:59 +0200
commit251d796a8d4b995ee5373c25d895604e4278114d (patch)
treee1b7d44dc016b236dba636bdc5bbfce375cb9df0
parentFix failing pytest modules/http2/test_712_buffering.py:48. (diff)
downloadapache2-251d796a8d4b995ee5373c25d895604e4278114d.tar.xz
apache2-251d796a8d4b995ee5373c25d895604e4278114d.zip
Fix occasional pytest failures
in modules/http2/test_800_websockets.py (test_h2_800_04_non_ws_resource and test_h2_800_09b_unsupported) due to additional RST messages. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1916808 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--test/modules/http2/test_800_websockets.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/modules/http2/test_800_websockets.py b/test/modules/http2/test_800_websockets.py
index 2e3d03a0e5..ef0e61673f 100644
--- a/test/modules/http2/test_800_websockets.py
+++ b/test/modules/http2/test_800_websockets.py
@@ -174,7 +174,7 @@ class TestWebSockets:
def test_h2_800_04_non_ws_resource(self, env: H2TestEnv, ws_server):
r, infos, frames = ws_run(env, path='/alive.json')
assert r.exit_code == 0, f'{r}'
- assert infos == ['[1] :status: 502', '[1] EOF'], f'{r}'
+ assert infos == ['[1] :status: 502', '[1] EOF'] or infos == ['[1] :status: 502', '[1] EOF', '[1] RST'], f'{r}'
assert frames == b''
# CONNECT to a URL path that sends a delayed HTTP response body
@@ -214,7 +214,7 @@ class TestWebSockets:
r, infos, frames = ws_run(env, path='/ws/echo/',
authority=f'test1.{env.http_tld}:{env.http_port}')
assert r.exit_code == 0, f'{r}'
- assert infos == ['[1] :status: 501', '[1] EOF'], f'{r}'
+ assert infos == ['[1] :status: 501', '[1] EOF'] or infos == ['[1] :status: 501', '[1] EOF', '[1] RST'], f'{r}'
# CONNECT and exchange a PING
def test_h2_800_10_ws_ping(self, env: H2TestEnv, ws_server):