mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 05:51:39 +00:00
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:
parent
e934912b4a
commit
6e323660e0
33 changed files with 39 additions and 34 deletions
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue