Skip to content

Commit f4ed34a

Browse files
committed
modified run for thread pt 2
1 parent a50d815 commit f4ed34a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/asynchronous/test_auth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ def __init__(self, collection):
7777
self.success = False
7878

7979
def run(self):
80-
async def _run_async(self):
80+
async def _run_async():
8181
assert await self.collection.find_one({"$where": delay(1)}) is not None
8282
self.success = True
8383

84-
asyncio.run(self.run_async())
84+
asyncio.run(_run_async())
8585

8686

8787
class TestGSSAPI(unittest.IsolatedAsyncioTestCase):

test/test_auth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ def __init__(self, collection):
7777
self.success = False
7878

7979
def run(self):
80-
def _run_async(self):
80+
def _run_async():
8181
assert self.collection.find_one({"$where": delay(1)}) is not None
8282
self.success = True
8383

84-
asyncio.run(self.run_async())
84+
asyncio.run(_run_async())
8585

8686

8787
class TestGSSAPI(unittest.TestCase):

0 commit comments

Comments
 (0)