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.
pull/183/merge
Paul Sokolovsky 2017-08-20 17:06:07 +03:00
rodzic eef054d98a
commit 79f13b6e4a
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -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']