diff --git a/pytest_aioworkers/plugin.py b/pytest_aioworkers/plugin.py index 829fd63..93a5dfa 100644 --- a/pytest_aioworkers/plugin.py +++ b/pytest_aioworkers/plugin.py @@ -36,14 +36,14 @@ def config(aioworkers, config_yaml): @pytest.fixture -def context(loop, groups, config): +def context(event_loop, groups, config): from aioworkers.core.context import Context, GroupResolver gr = GroupResolver( include=groups.include, exclude=groups.exclude, ) - with Context(config, group_resolver=gr, loop=loop) as ctx: + with Context(config, group_resolver=gr, loop=event_loop) as ctx: yield ctx