From 79f13b6e4afb59faf7877fa9bed2a8c97feb7ced Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 20 Aug 2017 17:06:07 +0300 Subject: [PATCH] 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. --- uasyncio.core/test_full_wait.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/uasyncio.core/test_full_wait.py b/uasyncio.core/test_full_wait.py index 4567adca..cf3ed2d1 100644 --- a/uasyncio.core/test_full_wait.py +++ b/uasyncio.core/test_full_wait.py @@ -31,4 +31,6 @@ except StopIteration: pass print(loop.msgs) -assert loop.msgs == ['I should be run first, time: 100', 'I should be run second, time: 500'] +# .wait() is now called on each loop iteration, and for our mock case, it means that +# at the time of running, self.time() will be skewed by 100 virtual time units. +assert loop.msgs == ['I should be run first, time: 200', 'I should be run second, time: 600']