Skip to content

Commit

Permalink
await an async sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
notmgsk committed Jan 19, 2021
1 parent 12842c4 commit 519d1b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpcq/test/test_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __init__(self, num):
self.num = num

async def add(self, *args):
asyncio.sleep(0.1)
await asyncio.sleep(0.1)
return sum(args) + self.num

def blocking_add(self, *args):
Expand Down

0 comments on commit 519d1b5

Please sign in to comment.