test: Skip gunicorn flaky tests (#37519)

Leaving just one of them (gthread).

Most failures seem to be from flaky cleanup between tests.
This commit is contained in:
Ankush Menat 2026-02-25 14:22:27 +05:30 committed by GitHub
parent 550c779e2b
commit ff3580bfd6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)