Skip to content

Commit 3ca1d44

Browse files
committed
test: use await in e2e tests
1 parent b5b402d commit 3ca1d44

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

e2e_projects/my_lib/src/my_lib/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from functools import cache
33
from typing import Union
44
import ctypes
5+
import asyncio
56

67

78
def hello() -> str:
@@ -35,6 +36,7 @@ async def async_consumer():
3536

3637
async def async_generator():
3738
for i in range(10):
39+
await asyncio.sleep(0.001) # pragma: no mutate
3840
yield i
3941

4042
def simple_consumer():

0 commit comments

Comments
 (0)