瀏覽代碼

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