test(macos): soften tests to account for macOS polling differences

This commit is contained in:
Daniele Varrazzo 2025-01-05 03:48:41 +01:00
parent c8abc5ce61
commit 1eac4fd4da
2 changed files with 2 additions and 2 deletions

View File

@ -504,7 +504,7 @@ class AsyncTests(ConnectingTestCase):
raise Exception("Unexpected result from poll: %r", state) raise Exception("Unexpected result from poll: %r", state)
polls += 1 polls += 1
self.assert_(polls >= 8, polls) self.assert_(polls >= 5, polls)
def test_poll_noop(self): def test_poll_noop(self):
self.conn.poll() self.conn.poll()

View File

@ -152,7 +152,7 @@ class GreenTestCase(ConnectingTestCase):
""") """)
polls = stub.polls.count(POLL_READ) polls = stub.polls.count(POLL_READ)
self.assert_(polls > 8, polls) self.assert_(polls > 6, polls)
class CallbackErrorTestCase(ConnectingTestCase): class CallbackErrorTestCase(ConnectingTestCase):