diff --git a/tests/extmod/uasyncio_basic.py b/tests/extmod/uasyncio_basic.py index f6685fa674..c88908d99b 100644 --- a/tests/extmod/uasyncio_basic.py +++ b/tests/extmod/uasyncio_basic.py @@ -36,8 +36,16 @@ async def main(): t1 = ticks() await delay_print(0.04, "long") t2 = ticks() + await delay_print(-1, "negative") + t3 = ticks() - print("took {} {}".format(round(ticks_diff(t1, t0), -1), round(ticks_diff(t2, t1), -1))) + print( + "took {} {} {}".format( + round(ticks_diff(t1, t0), -1), + round(ticks_diff(t2, t1), -1), + round(ticks_diff(t3, t2), -1), + ) + ) asyncio.run(main()) diff --git a/tests/extmod/uasyncio_basic.py.exp b/tests/extmod/uasyncio_basic.py.exp index 447d05d5e0..6673978769 100644 --- a/tests/extmod/uasyncio_basic.py.exp +++ b/tests/extmod/uasyncio_basic.py.exp @@ -2,4 +2,5 @@ start after sleep short long -took 20 40 +negative +took 20 40 0