Browse Source

fix another flaky auto-context test

Falko Schindler 2 years ago
parent
commit
369948d111
1 changed files with 2 additions and 1 deletions
  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')