Stream WhisperX uploads safely
This commit is contained in:
@@ -235,8 +235,9 @@ func TestStagesReturnExpectedMetadata(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
if len(wf.Requests) != 1 {
|
||||
t.Fatalf("whisperx calls = %d, want 1", len(wf.Requests))
|
||||
whisperXRequests := wf.RequestsSnapshot()
|
||||
if len(whisperXRequests) != 1 {
|
||||
t.Fatalf("whisperx calls = %d, want 1", len(whisperXRequests))
|
||||
}
|
||||
if len(sf.Requests) != 1 {
|
||||
t.Fatalf("seriatim calls = %d, want 1", len(sf.Requests))
|
||||
|
||||
@@ -206,10 +206,11 @@ func TestTranscribeStageUsesRunLocalOutputAndMaterializesCanonical(t *testing.T)
|
||||
if err != nil {
|
||||
t.Fatalf("transcribe.Run() error = %v", err)
|
||||
}
|
||||
if len(fake.Requests) != 1 {
|
||||
t.Fatalf("requests = %d, want 1", len(fake.Requests))
|
||||
requests := fake.RequestsSnapshot()
|
||||
if len(requests) != 1 {
|
||||
t.Fatalf("requests = %d, want 1", len(requests))
|
||||
}
|
||||
runOut := fake.Requests[0].OutputRawTranscriptPath
|
||||
runOut := requests[0].OutputRawTranscriptPath
|
||||
if !strings.Contains(runOut, filepath.Join("runs", m.RunID, "transcribe", "outputs")) {
|
||||
t.Fatalf("run-local output path = %q, want runs/{run_id}/transcribe/outputs path", runOut)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user