Update snapshot files to standardize messageCursor redaction

- Replaced specific messageCursor values with a placeholder "[message-cursor]" across multiple snapshot files to ensure consistency in test outputs.
- Adjusted the test utility to add redaction for messageCursor, addressing non-deterministic behavior in macOS environments.
This commit is contained in:
Joe 2026-02-08 12:07:20 -06:00
parent e934912b4a
commit 6e323660e0
33 changed files with 39 additions and 34 deletions

View file

@ -51,6 +51,10 @@ pub fn run_serve_test(test_name: &str, callback: impl FnOnce(TestServeSession, R
settings.set_snapshot_path(snapshot_path);
settings.set_sort_maps(true);
settings.add_redaction(".serverVersion", "[server-version]");
// messageCursor is non-deterministic: on macOS kqueue delivers extra
// per-file vnode events that can bump the cursor beyond what the test
// expects. The exact cursor value is irrelevant to snapshot correctness.
settings.add_redaction(".messageCursor", "[message-cursor]");
settings.bind(move || callback(session, redactions));
}