Verify mixed audio retries and transport
This commit is contained in:
@@ -54,7 +54,7 @@ func TestHTTPClientTranscribeSuccess(t *testing.T) {
|
||||
t.Fatalf("NewHTTPClientFromConfigValues() error = %v", err)
|
||||
}
|
||||
|
||||
audioPath := writeWhisperXTestFile(t, "audio.flac", "audio-data")
|
||||
audioPath := writeWhisperXTestFile(t, "audio.mp3", "audio-data")
|
||||
outPath := filepath.Join(t.TempDir(), "raw.json")
|
||||
|
||||
res, err := client.Transcribe(context.Background(), TranscribeRequest{
|
||||
@@ -74,8 +74,8 @@ func TestHTTPClientTranscribeSuccess(t *testing.T) {
|
||||
if gotLanguage != "en" {
|
||||
t.Fatalf("language = %q, want en", gotLanguage)
|
||||
}
|
||||
if gotFileField != "audio.flac" {
|
||||
t.Fatalf("file field filename = %q, want audio.flac", gotFileField)
|
||||
if gotFileField != "audio.mp3" {
|
||||
t.Fatalf("file field filename = %q, want audio.mp3", gotFileField)
|
||||
}
|
||||
if gotFileSize == 0 {
|
||||
t.Fatal("file size = 0, want >0")
|
||||
|
||||
Reference in New Issue
Block a user