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));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -47,8 +47,11 @@ const STRESS_OP_DELAY_MS: u64 = 250;
|
|||
const STRESS_OP_DELAY_MS: u64 = 30;
|
||||
|
||||
/// Poll timeout for stress tests that wait for the tree to settle (ms).
|
||||
/// macOS kqueue generates per-file vnode events for every rename, and each
|
||||
/// event triggers a re-snapshot of the parent directory. Under heavy CI load
|
||||
/// (e.g., 5-file simultaneous rename chains), 15s can be insufficient.
|
||||
#[cfg(target_os = "macos")]
|
||||
const STRESS_POLL_TIMEOUT_MS: u64 = 15000;
|
||||
const STRESS_POLL_TIMEOUT_MS: u64 = 30000;
|
||||
#[cfg(not(target_os = "macos"))]
|
||||
const STRESS_POLL_TIMEOUT_MS: u64 = 5000;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue