test(engine): update contradiction_demotes_privacy for #1031 guard thresholds

The streaming-engine privacy-demotion test fed a 2 ms timestamp spread, which
demoted under the old 1 ms soft guard. #1031 raised the default soft guard to
20 ms (to accommodate the real TDM slot offset), so 2 ms now fuses cleanly with
no demotion. Bump the test spread to 25 ms (above the 20 ms soft guard, within
the 60 ms hard guard) so it still proves the ADR-137 -> ADR-141 demotion wiring.

Co-Authored-By: claude-flow <ruv@ruv.net>
This commit is contained in:
ruv 2026-06-13 12:14:11 -04:00
parent 107232c0be
commit fd1430e46f
1 changed files with 3 additions and 2 deletions

View File

@ -682,8 +682,9 @@ mod tests {
fn contradiction_demotes_privacy() { fn contradiction_demotes_privacy() {
let (mut e, room) = engine(); let (mut e, room) = engine();
let cal = CalibrationId(7); let cal = CalibrationId(7);
// 2 ms spread: within the 5 ms hard guard but above the 1 ms soft guard. // 25 ms spread: within the 60 ms hard guard but above the 20 ms soft
let frames = [node_frame(0, 1000, 56), node_frame(1, 3000, 56)]; // guard (#1031 raised both to accommodate the real TDM slot offset).
let frames = [node_frame(0, 1_000, 56), node_frame(1, 26_000, 56)];
let out = e.process_cycle(&frames, cal, room, 20_000).unwrap(); let out = e.process_cycle(&frames, cal, room, 20_000).unwrap();
assert!(out.demoted, "loose alignment must demote"); assert!(out.demoted, "loose alignment must demote");