Skip to content

Commit

Permalink
test(macos): soften tests to account for macOS polling differences
Browse files Browse the repository at this point in the history
  • Loading branch information
dvarrazzo committed Jan 5, 2025
1 parent c8abc5c commit 1eac4fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_green.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 1eac4fd

Please sign in to comment.