Skip to content

Commit a22e2c7

Browse files
committed
Removed the redundant sentinel_task and mock_create_task.return_value assignment
1 parent 4b3828b commit a22e2c7

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

tests/server/tasks/test_result_aggregator.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,6 @@ async def mock_consume_generator():
262262

263263
# Mock _continue_consuming to check if it's called by create_task
264264
self.aggregator._continue_consuming = AsyncMock()
265-
sentinel_task = asyncio.ensure_future(asyncio.sleep(0))
266-
mock_create_task.return_value = sentinel_task
267265
mock_create_task.side_effect = lambda coro: asyncio.ensure_future(coro)
268266

269267
(

0 commit comments

Comments
 (0)