Skip to content

Commit 928dbbf

Browse files
committed
test(processor): skip analyzer test when testdata unavailable
- Change t.Fatalf to t.Skipf when testdata directory cannot be read - Allows CI to pass without requiring private audio test files - Matches existing skip behaviour in processor_test.go
1 parent 31ff978 commit 928dbbf

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

internal/processor/analyzer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ func TestAnalyzeAudio(t *testing.T) {
1212
testdataDir := "../../testdata"
1313
entries, err := os.ReadDir(testdataDir)
1414
if err != nil {
15-
t.Fatalf("Failed to read testdata directory: %v", err)
15+
t.Skipf("Skipping: testdata directory not available: %v", err)
1616
}
1717

1818
// Filter for audio files (.flac, .wav, .mp3)

0 commit comments

Comments
 (0)