Skip to content

Commit 79f13b6

Browse files
committed
uasyncio.core/test_full_wait: Update for .wait() called on each loop iter.
This fixes this mock test after the recent change to make I/O scheduling fair.
1 parent eef054d commit 79f13b6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

uasyncio.core/test_full_wait.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,6 @@ def wait(self, delay):
3131
pass
3232

3333
print(loop.msgs)
34-
assert loop.msgs == ['I should be run first, time: 100', 'I should be run second, time: 500']
34+
# .wait() is now called on each loop iteration, and for our mock case, it means that
35+
# at the time of running, self.time() will be skewed by 100 virtual time units.
36+
assert loop.msgs == ['I should be run first, time: 200', 'I should be run second, time: 600']

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy