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