소스 검색

fix another flaky auto-context test

Falko Schindler 2 년 전
부모
커밋
369948d111
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      tests/test_auto_context.py

+ 2 - 1
tests/test_auto_context.py

@@ -98,7 +98,8 @@ def test_autoupdate_on_async_timer_callback(screen: Screen):
     ui.timer(2.0, update, once=True)
 
     screen.open('/')
-    screen.should_contain('0')
+    with screen.implicitly_wait(10.0):
+        screen.should_contain('0')
     screen.should_not_contain('1')
     screen.wait_for('1')
     screen.should_not_contain('2')