From 8f79132fcb8e07ea06a23cda3b657e9c24476d70 Mon Sep 17 00:00:00 2001 From: Mathias Date: Fri, 2 Oct 2026 17:20:38 +0200 Subject: [PATCH] test: second review -- the upload chat model outside the chain, room checked before spooling, a cut-off body is a 400, bidi controls in titles, the ensemble's deadline wiring, an honest test name (red) Co-Authored-By: Claude Sonnet 5.5 --- internal/adapters/audio/ffmpeg_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/adapters/audio/ffmpeg_test.go b/internal/adapters/audio/ffmpeg_test.go index bb8c6c1..57205a5 100644 --- a/internal/adapters/audio/ffmpeg_test.go +++ b/internal/adapters/audio/ffmpeg_test.go @@ -78,7 +78,7 @@ printf data > "$last"`) assert.Less(t, fw, in) } -func TestFFmpegToWAV_CapsTheOutputLengthWhenAMaximumIsSet(t *testing.T) { +func TestFFmpegToWAV_PassesAnOutputLengthCapAfterTheInputWhenAMaximumIsSet(t *testing.T) { // The duration limit is a CLAIM in the file's header; a file that lies about it can // convert to hours of audio (adversarial review F2: a 2 h file claiming 10 s became a // 120-minute WAV). The cap is an OUTPUT option, after -i, with a minute of slack. @@ -97,7 +97,7 @@ printf data > "$last"`) assert.Less(t, strings.Index(joined, " -i /spool/in "), strings.Index(joined, " -t 5460 "), "-t after -i is an output cap; before it, an input one") } -func TestFFmpegToWAV_WithNoMaximumThereIsNoLengthCap(t *testing.T) { +func TestFFmpegToWAV_PassesNoLengthCapWhenNoMaximumIsSet(t *testing.T) { rec := filepath.Join(t.TempDir(), "argv") bin := stub(t, `printf '%s\n' "$@" > `+rec+` for a; do last="$a"; done