From 1eac4fd4da13eda54022e62216c837c9d563a18a Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Sun, 5 Jan 2025 03:48:41 +0100 Subject: [PATCH] test(macos): soften tests to account for macOS polling differences --- tests/test_async.py | 2 +- tests/test_green.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_async.py b/tests/test_async.py index dfc7b598b..975e7f4db 100755 --- a/tests/test_async.py +++ b/tests/test_async.py @@ -504,7 +504,7 @@ def test_non_block_after_notification(self): raise Exception("Unexpected result from poll: %r", state) polls += 1 - self.assert_(polls >= 8, polls) + self.assert_(polls >= 5, polls) def test_poll_noop(self): self.conn.poll() diff --git a/tests/test_green.py b/tests/test_green.py index e558d6263..5e2ae5132 100755 --- a/tests/test_green.py +++ b/tests/test_green.py @@ -152,7 +152,7 @@ def wait(conn): """) polls = stub.polls.count(POLL_READ) - self.assert_(polls > 8, polls) + self.assert_(polls > 6, polls) class CallbackErrorTestCase(ConnectingTestCase):