Skip to content

Commit

Permalink
try solving test failure on macos platform
Browse files Browse the repository at this point in the history
- set bind address in test_start_runserver to 0.0.0.0
  • Loading branch information
Cycloctane committed Jan 1, 2025
1 parent 3e0b24b commit 19e89ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_runserver_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ def create_app():
})
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
args = runserver(app_path='app.py', static_path='static_dir')
args = runserver(app_path='app.py', static_path='static_dir', bind_address="0.0.0.0")
aux_app = args["app"]
aux_port = args["port"]
runapp_host = args.get("host", "")
assert isinstance(aux_app, aiohttp.web.Application)
assert aux_port == 8001
assert runapp_host == "localhost"
assert runapp_host == "0.0.0.0"
for startup in aux_app.on_startup:
loop.run_until_complete(startup(aux_app))

Expand Down

0 comments on commit 19e89ad

Please sign in to comment.