Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Nov 30, 2021
1 parent cce2af1 commit 8b1068a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


@pytest.mark.asyncio
def test_events_default_task(docker):
async def test_events_default_task(docker):
docker.events.subscribe()
assert docker.events.task is not None
await docker.close()
Expand All @@ -13,7 +13,7 @@ def test_events_default_task(docker):


@pytest.mark.asyncio
def test_events_provided_task(docker):
async def test_events_provided_task(docker):
task = asyncio.ensure_future(docker.events.run())
docker.events.subscribe(create_task=False)
assert docker.events.task is None
Expand All @@ -25,7 +25,7 @@ def test_events_provided_task(docker):


@pytest.mark.asyncio
def test_events_no_task(docker):
async def test_events_no_task(docker):
assert docker.events.task is None
await docker.close()
assert docker.events.json_stream is None

0 comments on commit 8b1068a

Please sign in to comment.