Falko Schindler 2 年之前
父节点
当前提交
76ba24f99e
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      tests/test_auto_context.py

+ 2 - 2
tests/test_auto_context.py

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