Make test more reliable
In some systems, it was detecting the `go.mod` file as an audio file, probably because of the system's mime-type configuration
This commit is contained in:
@@ -62,7 +62,7 @@ var _ = Describe("Metadata", func() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
It("returns empty map if there are no audio files in path", 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() {
|
It("creates a valid command line", func() {
|
||||||
args := createProbeCommand([]string{"/music library/one.mp3", "/music library/two.mp3"})
|
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"}))
|
||||||
})
|
})
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user