Explorar el Código

try to fix another flakyness

Rodja Trappe hace 2 años
padre
commit
bfcaae8f06
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      tests/test_auto_context.py

+ 1 - 1
tests/test_auto_context.py

@@ -92,7 +92,7 @@ def test_autoupdate_on_async_event_handler(screen: Screen):
 def test_autoupdate_on_async_timer_callback(screen: Screen):
 def test_autoupdate_on_async_timer_callback(screen: Screen):
     async def update():
     async def update():
         ui.label('1')
         ui.label('1')
-        await asyncio.sleep(2.0)
+        await asyncio.sleep(3.0)
         ui.label('2')
         ui.label('2')
     ui.label('0')
     ui.label('0')
     ui.timer(2.0, update, once=True)
     ui.timer(2.0, update, once=True)