|
@@ -95,12 +95,12 @@ def test_autoupdate_on_async_timer_callback(screen: Screen):
|
|
|
await asyncio.sleep(1.0)
|
|
|
ui.label('2')
|
|
|
ui.label('0')
|
|
|
- ui.timer(2.0, update, once=True)
|
|
|
+ ui.timer(1.0, update, once=True)
|
|
|
|
|
|
screen.open('/')
|
|
|
screen.should_contain('0')
|
|
|
screen.should_not_contain('1')
|
|
|
- screen.wait_for('1')
|
|
|
+ screen.wait_for('1', timeout=2.0)
|
|
|
screen.should_not_contain('2')
|
|
|
screen.wait_for('2')
|
|
|
|