From ff3580bfd6a4962ed3e7f9b8085d68b2ab5b33d2 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Wed, 25 Feb 2026 14:22:27 +0530 Subject: [PATCH] test: Skip gunicorn flaky tests (#37519) Leaving just one of them (gthread). Most failures seem to be from flaky cleanup between tests. --- frappe/commands/test_commands.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frappe/commands/test_commands.py b/frappe/commands/test_commands.py index bd9697d599..f3d9f3d0d9 100644 --- a/frappe/commands/test_commands.py +++ b/frappe/commands/test_commands.py @@ -1116,6 +1116,7 @@ class TestGunicornWorker(IntegrationTestCase): time.sleep(2) execute_in_shell("pgrep gunicorn | xargs -L1 kill -9") + @unittest.skip("Flaky test") def test_gunicorn_ping_sync(self): self.spawn_gunicorn() path = f"http://{self.TEST_SITE}:{self.port}/api/method/ping" @@ -1126,6 +1127,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_idle_cpu_usage(self): def get_total_usage(): process = psutil.Process(self.handle.pid)