Skip to content

Commit 0ec71a3

Browse files
Increase hydration test timeouts to fix flaky failures (#3973)
The use_prepared_state and use_transitive_state hydration tests were flaky due to the async nature of base64 decoding via fetch API for data: URLs. The 100ms timeout was sometimes insufficient on CI runners under load. Increase timeouts from 100ms to 200ms to provide more headroom for the async hydration chain to complete.
1 parent a5aefd8 commit 0ec71a3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/yew/tests/use_prepared_state.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ async fn use_prepared_state_works() {
5656
Renderer::<App>::with_root(gloo::utils::document().get_element_by_id("output").unwrap())
5757
.hydrate();
5858

59-
sleep(Duration::from_millis(100)).await;
59+
sleep(Duration::from_millis(200)).await;
6060

6161
let result = obtain_result_by_id("output");
6262

@@ -106,7 +106,7 @@ async fn use_prepared_state_with_suspension_works() {
106106
Renderer::<App>::with_root(gloo::utils::document().get_element_by_id("output").unwrap())
107107
.hydrate();
108108

109-
sleep(Duration::from_millis(100)).await;
109+
sleep(Duration::from_millis(200)).await;
110110

111111
let result = obtain_result_by_id("output");
112112

packages/yew/tests/use_transitive_state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ async fn use_transitive_state_works() {
5656
Renderer::<App>::with_root(gloo::utils::document().get_element_by_id("output").unwrap())
5757
.hydrate();
5858

59-
sleep(Duration::from_millis(100)).await;
59+
sleep(Duration::from_millis(200)).await;
6060

6161
let result = obtain_result_by_id("output");
6262

0 commit comments

Comments
 (0)