Skip to content

Commit

Permalink
code format: tests/test_pool.py
Browse files Browse the repository at this point in the history
  • Loading branch information
shenchucheng committed Nov 14, 2024
1 parent 3ba566f commit 292d737
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_pool.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import asyncio

import pytest

from asyncmy.connection import Connection
Expand Down Expand Up @@ -41,6 +42,7 @@ async def run(index):
await cursor.execute(f"SELECT {index}")
ret = await cursor.fetchone()
assert ret == (index,)

task = event_loop.create_task(run(1))
await asyncio.sleep(0)
task.cancel()
Expand Down

0 comments on commit 292d737

Please sign in to comment.