Skip to content

Commit c2aba5b

Browse files
committed
asyntest.py condition_test workround for Loboris port bug.
1 parent 61c24c3 commit c2aba5b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

asyntest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ async def cond03(): # Maintain a count of seconds
303303
tim += 1
304304

305305
def predicate():
306-
return tim >= 12
306+
return tim >= 8 # 12
307307

308308
async def cond04(n, barrier):
309309
with await cond:
@@ -344,9 +344,9 @@ def condition_test():
344344
cond02 2 triggered. tim = 5
345345
cond02 0 triggered. tim = 7
346346
cond04 99 Awaiting notification and predicate.
347-
cond04 99 triggered. tim = 13
347+
cond04 99 triggered. tim = 9
348348
Done.
349-
''', 16)
349+
''', 13)
350350
loop = asyncio.get_event_loop()
351351
loop.run_until_complete(cond_go(loop))
352352

0 commit comments

Comments
 (0)