We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5925aa6 commit bc14f2fCopy full SHA for bc14f2f
uasyncio.core/test_fair_schedule.py
@@ -4,11 +4,12 @@
4
import uasyncio.core as asyncio
5
6
7
-COROS = 5
8
-ITERS = 5
+COROS = 10
+ITERS = 20
9
10
11
result = []
12
+test_finished = False
13
14
15
async def coro(n):
@@ -18,10 +19,12 @@ async def coro(n):
18
19
20
21
async def done():
22
+ global test_finished
23
while True:
24
if len(result) == COROS * ITERS:
25
#print(result)
26
assert result == list(range(COROS)) * ITERS
27
+ test_finished = True
28
return
29
yield
30
@@ -32,3 +35,5 @@ async def done():
32
35
loop.create_task(coro(n))
33
36
34
37
loop.run_until_complete(done())
38
+
39
+assert test_finished
0 commit comments