diff --git a/crates/hooks/src/use_animation.rs b/crates/hooks/src/use_animation.rs index b6ab36135..ab5561b85 100644 --- a/crates/hooks/src/use_animation.rs +++ b/crates/hooks/src/use_animation.rs @@ -155,7 +155,7 @@ mod test { assert_eq!(utils.root().get(0).layout().unwrap().width(), 0.0); // State somewhere in the middle - sleep(Duration::from_millis(32)).await; + sleep(Duration::from_millis(15)).await; utils.wait_for_update().await; let width = utils.root().get(0).layout().unwrap().width(); diff --git a/crates/hooks/src/use_animation_transition.rs b/crates/hooks/src/use_animation_transition.rs index 1164dd0c9..67833db26 100644 --- a/crates/hooks/src/use_animation_transition.rs +++ b/crates/hooks/src/use_animation_transition.rs @@ -348,7 +348,7 @@ mod test { assert_eq!(utils.root().get(0).layout().unwrap().width(), 0.0); // State somewhere in the middle - sleep(Duration::from_millis(32)).await; + sleep(Duration::from_millis(15)).await; utils.wait_for_update().await; let width = utils.root().get(0).layout().unwrap().width();