Skip to content

Commit

Permalink
use event_loop
Browse files Browse the repository at this point in the history
  • Loading branch information
aamalev committed May 1, 2023
1 parent 33d7f73 commit 406e1ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytest_aioworkers/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 406e1ae

Please sign in to comment.