From 82b289c9527890a0766b55be2214b3749283307a Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Thu, 13 Aug 2026 14:02:26 +0200 Subject: [PATCH] test_20_11: more leniency Loosen the RSS increase check slightly to make the test less flaky. Also use 'rss-max' stat. Closes #22574 --- tests/http/test_20_websockets.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/http/test_20_websockets.py b/tests/http/test_20_websockets.py index 70c0079719..8f8b2efaf0 100644 --- a/tests/http/test_20_websockets.py +++ b/tests/http/test_20_websockets.py @@ -308,7 +308,7 @@ class TestWebsockets: with_profile=True) assert r.exit_code in [55, 56], f'{r.dump_logs()}' # SEND/RECV_ERROR assert r.profile, f'{r}' - rss1 = r.profile.stats['rss'] / (1024 * 1024) + rss1 = r.profile.stats['rss-max'] / (1024 * 1024) st.clear() send_rounds = 10 @@ -322,8 +322,8 @@ class TestWebsockets: with_profile=True) assert r.exit_code in [55, 56], f'{r.dump_logs()}' # SEND/RECV_ERROR assert r.profile, f'{r}' - rss2 = r.profile.stats['rss'] / (1024 * 1024) - assert (rss1 * 1.1) >= rss2, 'bad memory increase' + rss2 = r.profile.stats['rss-max'] / (1024 * 1024) + assert (rss1 * 1.2) > rss2, 'bad memory increase' # test small frames delivery when pausing def test_20_12_pause_frames_small(self, env: Env, ws_4frames):