From 6cbb7b2df055a18ea9d9a2b4996ededfc5774c5f Mon Sep 17 00:00:00 2001 From: Mathias Date: Thu, 1 Oct 2026 18:42:04 +0200 Subject: [PATCH] test(uploads): a recording with a video track is accepted (red) A Teams meeting with the camera off is still an .mp4 with a video track. Video with no audio is now rejected as having no audio. Co-Authored-By: Claude Sonnet 5.5 --- internal/uploads/validate_test.go | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/internal/uploads/validate_test.go b/internal/uploads/validate_test.go index b8dc4c6..c5dcd78 100644 --- a/internal/uploads/validate_test.go +++ b/internal/uploads/validate_test.go @@ -29,16 +29,14 @@ func TestValidate(t *testing.T) { probe: uploads.Probe{Duration: 90 * time.Minute, HasAudio: true}, }, { - name: "a file with a video stream is rejected and names issue 28", - probe: uploads.Probe{Duration: 4 * time.Minute, HasAudio: true, HasVideo: true}, - wantReason: uploads.ReasonVideo, - wantInMsg: []string{"video", "#28"}, + name: "a recording that also has a video stream is accepted: the audio is what is used", + probe: uploads.Probe{Duration: 4 * time.Minute, HasAudio: true, HasVideo: true}, }, { - name: "video with no audio is still rejected as video, not as missing audio", + name: "video with no audio is rejected as having no audio, and says so", probe: uploads.Probe{Duration: 4 * time.Minute, HasVideo: true}, - wantReason: uploads.ReasonVideo, - wantInMsg: []string{"#28"}, + wantReason: uploads.ReasonNoAudio, + wantInMsg: []string{"no audio"}, }, { name: "a file with no audio stream is rejected",