From: Rainer Jung Date: Sat, 6 Apr 2024 10:25:41 +0000 (+0000) Subject: Fix occasional pytest failures X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3c4bf9ffe93e0a7dae2f1257782cdf087a68778;p=thirdparty%2Fapache%2Fhttpd.git Fix occasional pytest failures in modules/http2/test_800_websockets.py (test_h2_800_03_not_found and test_h2_800_05_non_ws_delay_resource) due to additional RST messages. Maybe we should allow RST after EOF in all websocket tests? git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1916830 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/test/modules/http2/test_800_websockets.py b/test/modules/http2/test_800_websockets.py index ef0e61673f7..14567675351 100644 --- a/test/modules/http2/test_800_websockets.py +++ b/test/modules/http2/test_800_websockets.py @@ -167,7 +167,7 @@ class TestWebSockets: def test_h2_800_03_not_found(self, env: H2TestEnv, ws_server): r, infos, frames = ws_run(env, path='/does-not-exist') assert r.exit_code == 0, f'{r}' - assert infos == ['[1] :status: 404', '[1] EOF'], f'{r}' + assert infos == ['[1] :status: 404', '[1] EOF'] or infos == ['[1] :status: 404', '[1] EOF', '[1] RST'], f'{r}' # CONNECT to a URL path that is a normal HTTP file resource # we do not want to receive the body of that @@ -182,7 +182,7 @@ class TestWebSockets: def test_h2_800_05_non_ws_delay_resource(self, env: H2TestEnv, ws_server): r, infos, frames = ws_run(env, path='/h2test/error?body_delay=100ms') 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 missing the sec-webSocket-version header