From 1fc2c2951cc9e062ef34a4d690053aa9419d1bc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Gir=C3=A3o=20Serr=C3=A3o?= <5621605+rodrigogiraoserrao@users.noreply.github.com> Date: Mon, 30 Jan 2023 17:24:15 +0000 Subject: [PATCH] Update test_animation.py Make it less likely for test to fail. References: #1675 --- tests/test_animation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_animation.py b/tests/test_animation.py index 8aa1615a2..20805ae9f 100644 --- a/tests/test_animation.py +++ b/tests/test_animation.py @@ -153,8 +153,8 @@ async def test_schedule_reverse_animations() -> None: assert styles.background.rgb == (0, 0, 0) # Now, the actual test is to make sure we go back to black if scheduling both at once. - styles.animate("background", "white", delay=0.01, duration=0.01) - await pilot.pause(0.005) - styles.animate("background", "black", delay=0.01, duration=0.01) + styles.animate("background", "white", delay=0.05, duration=0.01) + await pilot.pause() + styles.animate("background", "black", delay=0.05, duration=0.01) await pilot.wait_for_scheduled_animations() assert styles.background.rgb == (0, 0, 0)