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:
Deluan 2020-04-24 11:05:17 -04:00
parent fb4d920fba
commit d7edbf93f0
2 changed files with 2 additions and 2 deletions

View File

@ -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"}))
})
})

View File