Skip to content

Commit 27e2592

Browse files
committed
fixed test
1 parent 15ca507 commit 27e2592

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/client/test_factory.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,7 +1151,7 @@ async def record_active_and_redundant_factories(*_):
11511151
# Start factory and make assertions
11521152
factory = await get_factory_async('some_api_key', config={'streamingEmabled': False})
11531153
for task in asyncio.all_tasks():
1154-
if task.get_coro().__qualname__ == "EventsTaskAsync._run":
1154+
if task._coro.__qualname__ == "EventsTaskAsync._run":
11551155
task.cancel()
11561156
try:
11571157
await factory.block_until_ready(3)
@@ -1204,7 +1204,7 @@ async def record_active_and_redundant_factories(*_):
12041204
# Start factory and make assertions
12051205
factory = await get_factory_async('some_api_key', config={'streamingEmabled': False})
12061206
for task in asyncio.all_tasks():
1207-
if task.get_coro().__qualname__ == "EventsTaskAsync._run":
1207+
if task._coro.__qualname__ == "EventsTaskAsync._run":
12081208
task.cancel()
12091209
try:
12101210
await factory.block_until_ready(1)

0 commit comments

Comments
 (0)