mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-24 23:50:56 +03:00
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:
parent
fb4d920fba
commit
d7edbf93f0
@ -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"}))
|
||||
})
|
||||
|
||||
})
|
||||
|
0
tests/empty_folder/not_an_audio_file.txt
Normal file
0
tests/empty_folder/not_an_audio_file.txt
Normal file
Loading…
x
Reference in New Issue
Block a user