Skip to content

Commit

Permalink
Never use :: in tests without dual-stack
Browse files Browse the repository at this point in the history
  • Loading branch information
catap committed Jul 7, 2024
1 parent 3e3d9eb commit 9173a62
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ async def run_client(
return response

@contextlib.asynccontextmanager
async def run_server(self, configuration=None, host="::", **kwargs):
async def run_server(self, configuration=None, host=None, **kwargs):
if host is None and not socket.has_dualstack_ipv6():
host = "127.0.0.1"
elif host is None:
host = "::"
if configuration is None:
configuration = QuicConfiguration(is_client=False)
configuration.load_cert_chain(SERVER_CERTFILE, SERVER_KEYFILE)
Expand Down

0 comments on commit 9173a62

Please sign in to comment.