From c2f21bf572ff8ac0cc2cb80928db1790d7961705 Mon Sep 17 00:00:00 2001 From: AiBizzApps <133780730+goldsbd@users.noreply.github.com> Date: Sat, 10 Oct 2026 17:16:34 +0700 Subject: [PATCH] Tests: don't read the sample document aloud on every run (#75) `hostile_params_never_panic` runs every command four times, Read Aloud included, and on macOS that spawns `say` with the whole sample document: four overlapping voices for minutes after `cargo test` returns. Skip it with the other commands that reach outside the session; it ignores its params, so junk payloads had nothing to exercise there. Co-authored-by: Claude Opus 5.5 --- crates/engine/src/tests.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/engine/src/tests.rs b/crates/engine/src/tests.rs index c3d55ed63e..166ab92e61 100644 --- a/crates/engine/src/tests.rs +++ b/crates/engine/src/tests.rs @@ -311,7 +311,9 @@ fn hostile_params_never_panic() { json!({"value": -1e308, "rows": 1e9}), ]; for spec in reg.all() { - if spec.id.starts_with("file.") || spec.id == "insert.picture" || spec.id == "insert.textFromFile" { + // These reach outside the session: files, and Read Aloud starts the system speech + // synthesiser (`say` on macOS), which would read the sample document aloud on every run. + if spec.id.starts_with("file.") || spec.id == "insert.picture" || spec.id == "insert.textFromFile" || spec.id == "review.readAloud" { continue; } for j in &junk {