From 37d2ca8986e008b41537fdc9b9ce1384c3c03eb4 Mon Sep 17 00:00:00 2001 From: Joe Date: Sun, 15 Feb 2026 02:18:30 -0600 Subject: [PATCH] Update settle duration in TestServeSession to improve message handling - Adjusted the settle duration from 300ms to 100ms to ensure it is shorter than the 200ms reconciliation timer. This change prevents capturing tree-correction messages as part of the same batch, enhancing the accuracy of message processing in the test environment. This update improves the reliability of message handling during test sessions. --- tests/rojo_test/serve_util.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/rojo_test/serve_util.rs b/tests/rojo_test/serve_util.rs index 21682741..013b6ebc 100644 --- a/tests/rojo_test/serve_util.rs +++ b/tests/rojo_test/serve_util.rs @@ -244,7 +244,9 @@ impl TestServeSession { // After receiving the first message, keep collecting for this duration // after the LAST received message. This handles split events on Windows // where rename = REMOVE + CREATE may produce separate messages. - let settle = Duration::from_millis(300); + // Must be shorter than the 200ms reconciliation timer to avoid + // capturing tree-correction messages as part of the same batch. + let settle = Duration::from_millis(100); loop { // Hard timeout: no messages at all within 10 seconds