Set testing.PORT on all app.create_server() in tests (#1593)
This commit is contained in:
committed by
Stephen Sadowski
parent
a57c14c70b
commit
c15158224b
@@ -84,7 +84,7 @@ async def test_trigger_before_events_create_server(app):
|
||||
async def init_db(app, loop):
|
||||
app.db = MySanicDb()
|
||||
|
||||
await app.create_server(debug=True, return_asyncio_server=True)
|
||||
await app.create_server(debug=True, return_asyncio_server=True, port=PORT)
|
||||
|
||||
assert hasattr(app, "db")
|
||||
assert isinstance(app.db, MySanicDb)
|
||||
|
||||
Reference in New Issue
Block a user