Explorar el Código

fix another flaky auto-context test

Falko Schindler hace 2 años
padre
commit
369948d111
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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')