Update.
This commit is contained in:
parent
e77b2d851d
commit
2ad7401226
@ -1,3 +1,4 @@
|
||||
[pytest]
|
||||
pythonpath = .
|
||||
asyncio_mode = auto
|
||||
asyncio_default_fixture_loop_scope = function
|
||||
|
||||
@ -21,7 +21,7 @@ async def setup_services(app: web.Application):
|
||||
app["config_service"] = ConfigService(data_path / "config.json")
|
||||
|
||||
# Setup aiojobs scheduler
|
||||
app["scheduler"] = await aiojobs.create_scheduler()
|
||||
app["scheduler"] = aiojobs.Scheduler()
|
||||
yield
|
||||
# Cleanup aiojobs scheduler
|
||||
await app["scheduler"].close()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user