Skip to content

Commit

Permalink
localhost -> 127.0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mmastrac committed Oct 29, 2024
1 parent e39929d commit 1a8e54b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ async def mock_drop_server(
writer.close()
await writer.wait_closed()

server = await asyncio.start_server(mock_drop_server, 'localhost', 0)
server = await asyncio.start_server(mock_drop_server, '127.0.0.1', 0)
addr = server.sockets[0].getsockname()
url = f'http://{addr[0]}:{addr[1]}/drop'

Expand All @@ -153,7 +153,7 @@ async def mock_drop_server(
writer.close()
await writer.wait_closed()

server = await asyncio.start_server(mock_drop_server, 'localhost', 0)
server = await asyncio.start_server(mock_drop_server, '127.0.0.1', 0)
addr = server.sockets[0].getsockname()
url = f'http://{addr[0]}:{addr[1]}/drop'

Expand Down Expand Up @@ -228,7 +228,7 @@ async def mock_sse_server(
except Exception:
is_closed = True

server = await asyncio.start_server(mock_sse_server, 'localhost', 0)
server = await asyncio.start_server(mock_sse_server, '127.0.0.1', 0)
addr = server.sockets[0].getsockname()
url = f'http://{addr[0]}:{addr[1]}/sse'

Expand Down

0 comments on commit 1a8e54b

Please sign in to comment.