summaryrefslogtreecommitdiff
path: root/tests/extmod/uasyncio_heaplock.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/extmod/uasyncio_heaplock.py')
-rw-r--r--tests/extmod/uasyncio_heaplock.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/extmod/uasyncio_heaplock.py b/tests/extmod/uasyncio_heaplock.py
index 3a92d36c9..34a51cd37 100644
--- a/tests/extmod/uasyncio_heaplock.py
+++ b/tests/extmod/uasyncio_heaplock.py
@@ -29,15 +29,15 @@ async def task(id, n, t):
async def main():
- t1 = asyncio.create_task(task(1, 4, 20))
- t2 = asyncio.create_task(task(2, 2, 50))
+ t1 = asyncio.create_task(task(1, 4, 100))
+ t2 = asyncio.create_task(task(2, 2, 250))
micropython.heap_lock()
print("start")
- await asyncio.sleep_ms(1)
+ await asyncio.sleep_ms(5)
print("sleep")
- await asyncio.sleep_ms(70)
+ await asyncio.sleep_ms(350)
print("finish")
micropython.heap_unlock()