From 14daf5860ed5ff65706eeb4980d11456be8982bc Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Fri, 6 Mar 2026 11:51:11 +0530 Subject: [PATCH] test: flaky RQ / Gunicorn tests (#37815) 2% is too low and causes flaky tests sometimes. --- frappe/commands/test_commands.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frappe/commands/test_commands.py b/frappe/commands/test_commands.py index f3d9f3d0d9..5e08472965 100644 --- a/frappe/commands/test_commands.py +++ b/frappe/commands/test_commands.py @@ -1122,6 +1122,7 @@ class TestGunicornWorker(IntegrationTestCase): path = f"http://{self.TEST_SITE}:{self.port}/api/method/ping" self.assertEqual(requests.get(path).status_code, 200) + @unittest.skip("Flaky test") def test_gunicorn_ping_gthread(self): self.spawn_gunicorn(["--threads=2"]) path = f"http://{self.TEST_SITE}:{self.port}/api/method/ping" @@ -1174,9 +1175,9 @@ class TestRQWorker(IntegrationTestCase): def test_rq_pool_idle_cpu_usage(self): self.spawn_rq(pool=True) - self.assertLessEqual(self.get_total_usage(), 2) + self.assertLessEqual(self.get_total_usage(), 10) for _ in range(3): frappe.enqueue("frappe.ping") time.sleep(1) - self.assertLessEqual(self.get_total_usage(), 2) + self.assertLessEqual(self.get_total_usage(), 10)