mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-01-31 01:14:09 +03:00
test(macos): soften tests to account for macOS polling differences
This commit is contained in:
parent
c8abc5ce61
commit
1eac4fd4da
|
@ -504,7 +504,7 @@ class AsyncTests(ConnectingTestCase):
|
|||
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()
|
||||
|
|
|
@ -152,7 +152,7 @@ class GreenTestCase(ConnectingTestCase):
|
|||
""")
|
||||
|
||||
polls = stub.polls.count(POLL_READ)
|
||||
self.assert_(polls > 8, polls)
|
||||
self.assert_(polls > 6, polls)
|
||||
|
||||
|
||||
class CallbackErrorTestCase(ConnectingTestCase):
|
||||
|
|
Loading…
Reference in New Issue
Block a user