From e35aef1b24dc76766b01c264ec7c16f30297ebad Mon Sep 17 00:00:00 2001 From: marc2332 Date: Thu, 2 Nov 2023 18:36:58 +0100 Subject: [PATCH] chore: Reduce delay on animation hooks tests --- crates/hooks/src/use_animation.rs | 2 +- crates/hooks/src/use_animation_transition.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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();