Kaydet (Commit) c187d11a authored tarafından Mark Dickinson's avatar Mark Dickinson

Issue #5025: Fix occasional test_kqueue failure on OS X.

üst f081e1c9
......@@ -120,12 +120,15 @@ class TestKQueue(unittest.TestCase):
client.send("Hello!")
server.send("world!!!")
events = kq.control(None, 4, 1)
# We may need to call it several times
for i in range(5):
for i in range(10):
events = kq.control(None, 4, 1)
if len(events) == 4:
break
events = kq.control(None, 4, 1)
time.sleep(1.0)
else:
self.fail('timeout waiting for event notifications')
events = [(e.ident, e.filter, e.flags) for e in events]
events.sort()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment