Unverified Kaydet (Commit) e2537521 authored tarafından Andrew Svetlov's avatar Andrew Svetlov Kaydeden (comit) GitHub

Fix asyncio flaky tests (#7023)

üst a84d0b36
......@@ -1855,9 +1855,10 @@ class BaseLoopSockSendfileTests(test_utils.TestCase):
for _ in range(10):
try:
self.run_loop(self.loop.sock_connect(sock, (support.HOST, port)))
self.run_loop(self.loop.sock_connect(sock,
(support.HOST, port)))
except OSError:
time.sleep(0.5)
self.run_loop(asyncio.sleep(0.5))
continue
else:
break
......
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