Skip to content

Commit 1eac4fd

Browse files
committed
test(macos): soften tests to account for macOS polling differences
1 parent c8abc5c commit 1eac4fd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/test_async.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ def test_non_block_after_notification(self):
504504
raise Exception("Unexpected result from poll: %r", state)
505505
polls += 1
506506

507-
self.assert_(polls >= 8, polls)
507+
self.assert_(polls >= 5, polls)
508508

509509
def test_poll_noop(self):
510510
self.conn.poll()

tests/test_green.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def wait(conn):
152152
""")
153153

154154
polls = stub.polls.count(POLL_READ)
155-
self.assert_(polls > 8, polls)
155+
self.assert_(polls > 6, polls)
156156

157157

158158
class CallbackErrorTestCase(ConnectingTestCase):

0 commit comments

Comments
 (0)