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.
This commit is contained in:
Joe 2026-02-15 02:18:30 -06:00
parent 9a70bf65e9
commit 37d2ca8986

View file

@ -244,7 +244,9 @@ impl TestServeSession {
// After receiving the first message, keep collecting for this duration // After receiving the first message, keep collecting for this duration
// after the LAST received message. This handles split events on Windows // after the LAST received message. This handles split events on Windows
// where rename = REMOVE + CREATE may produce separate messages. // 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 { loop {
// Hard timeout: no messages at all within 10 seconds // Hard timeout: no messages at all within 10 seconds