Skip to content

Commit

Permalink
Merge pull request #52 from nizox/fix-sanic-21
Browse files Browse the repository at this point in the history
Fix for sanic 21
  • Loading branch information
yunstanford authored May 20, 2021
2 parents fb987f8 + ab9db44 commit e074a57
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pytest_sanic/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ async def start_server(self):
self.before_server_stop = server_settings.get('before_stop', [])
self.after_server_stop = server_settings.get('after_stop', [])

server_settings.pop("main_start", None)
server_settings.pop("main_stop", None)

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

Expand Down

0 comments on commit e074a57

Please sign in to comment.