Modify dual stack test to account for sadness of Travis

This commit is contained in:
Kovid Goyal 2019-01-16 10:19:44 +05:30
parent 5eafba6889
commit 57724b67b6
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -131,14 +131,11 @@ class LoopTest(BaseTest):
with TestServer(lambda data:(data.path[0] + data.read()), listen_on='::') as server:
self.ae(server.address[0], '::')
self.ae(server.loop.socket.getsockopt(IPPROTO_IPV6, socket.IPV6_V6ONLY), 0)
for interface in ('::1', '127.0.0.1'):
conn = server.connect(interface=interface)
conn = server.connect(interface='127.0.0.1')
conn.request('GET', '/test', 'body')
r = conn.getresponse()
self.ae(r.status, httplib.OK)
self.ae(r.read(), b'testbody')
r.close()
conn.close()
def test_ring_buffer(self):
'Test the ring buffer used for reads'