Skip to content

🎧 Your Personal Streaming Service

Make test more reliable

Deluand7edbf93f0fc
diff --git a/scanner/metadata_test.go b/scanner/metadata_test.go
index cf2f1a84e..649fc02a4 100644
--- a/scanner/metadata_test.go
+++ b/scanner/metadata_test.go
@@ -62,7 +62,7 @@ var _ = Describe("Metadata", func() {
})
It("returns empty map if there are no audio files in path", func() {
- Expect(LoadAllAudioFiles(".")).To(BeEmpty())
+ Expect(LoadAllAudioFiles("tests/empty_folder")).To(BeEmpty())
})
})
@@ -231,7 +231,7 @@ Tracklist:
It("creates a valid command line", func() {
args := createProbeCommand([]string{"/music library/one.mp3", "/music library/two.mp3"})
- Expect(args).To(Equal([]string{"ffmpeg", "-i", "/music library/one.mp3", "-i", "/music library/two.mp3", "-f", "ffmetadata" }))
+ Expect(args).To(Equal([]string{"ffmpeg", "-i", "/music library/one.mp3", "-i", "/music library/two.mp3", "-f", "ffmetadata"}))
})
})
diff --git a/tests/empty_folder/not_an_audio_file.txt b/tests/empty_folder/not_an_audio_file.txt
new file mode 100644
index 000000000..e69de29bb