Skip to content

Commit

Permalink
Fix occasional pytest failures
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rainerjung committed Apr 4, 2024
1 parent 773a5f8 commit 251d796
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/modules/http2/test_800_websockets.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def test_h2_800_03_not_found(self, env: H2TestEnv, ws_server):
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
Expand Down Expand Up @@ -214,7 +214,7 @@ def test_h2_800_09b_unsupported(self, env: H2TestEnv, ws_server):
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):
Expand Down

0 comments on commit 251d796

Please sign in to comment.