mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-12 21:42:53 +00:00
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 <noreply@anthropic.com>
This commit is contained in:
1 parent
780fd7a5af
commit
c2f21bf572
1 file changed
+3
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user