summaryrefslogtreecommitdiffstatshomepage
path: root/tests/extmod/uasyncio_fair.py
Commit message (Collapse)AuthorAge
* tests: Rename uasyncio to asyncio.Jim Mussared2023-06-19
| | | | | | This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
* tests/extmod: Make uasyncio_fair test more reliable by adjusting sleeps.Damien George2020-08-26
| | | | | | | | | | | With sleep(0.2) a multiple of sleep(0.1), the order of task 2 and 3 execution is not well defined, and depends on the precision of the system clock and how fast the rest of the code runs. So change 0.2 to 0.18 to make the test more reliable. Also fix a typo of t3/t4, and cancel t4 at the end. Signed-off-by: Damien George <damien@micropython.org>
* extmod/uasyncio: Truncate negative sleeps to 0.Damien George2020-08-22
| | | | | | | | Otherwise a task that continuously awaits on a large negative sleep can monopolise the scheduler (because its wake time is always less than everything else in the pairing heap). Signed-off-by: Damien George <damien@micropython.org>
* tests/extmod: Add uasyncio tests.Damien George2020-03-26
All .exp files are included because they require CPython 3.8 which may not always be available.