Refactor code to pass the Lint

This commit is contained in:
andrew000 2022-10-25 23:42:10 +03:00
parent 7125c2b39f
commit 7f7c1820e5
No known key found for this signature in database
GPG key ID: D332A306AAA27181
3 changed files with 8 additions and 9 deletions

View file

@ -48,7 +48,8 @@ class TestLockIsolations:
for _ in range(100):
tasks.append(
asyncio.create_task(self._some_task(isolation, bot, self.random_storage_key(bot))))
asyncio.create_task(self._some_task(isolation, bot, self.random_storage_key(bot)))
)
await asyncio.sleep(0.01)
await asyncio.gather(*[task for task in tasks if not task.done()])