Skip to content

Commit

Permalink
port fix from yunstanford#63
Browse files Browse the repository at this point in the history
  • Loading branch information
indam23 committed Jul 1, 2022
1 parent 08395f2 commit 39ac56f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pytest_sanic/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ async def start_server(self):
server_settings.pop("main_start", None)
server_settings.pop("main_stop", None)

await self.app._startup()
await self.app._server_event("init", "before")
# Trigger after_start events
await self.app._server_event("init", "after")

# Trigger before_start events
await trigger_events(self.before_server_start, self.loop)

Expand Down

0 comments on commit 39ac56f

Please sign in to comment.