Commit 10e39099 authored by Denis Bilenko's avatar Denis Bilenko

test__socket_dns.py: fix TestInterrupted.wait not to exit too early

parent 7ae7a191
......@@ -213,7 +213,11 @@ class TestInterrupted(greentest.GenericWaitTestCase):
def wait(self, timeout):
with gevent.Timeout(timeout, False):
return getaddrinfo('www.gevent.org', 'http')
for index in range(1000):
try:
getaddrinfo('www.a%s.com' % index, 'http')
except gaierror:
pass
if __name__ == '__main__':
......
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