mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-15 03:30:39 +03:00
Add missing test case for #1778
This commit is contained in:
parent
321b3c5a64
commit
35bec14d4d
5
utils/cache/spread_fs_test.go
vendored
5
utils/cache/spread_fs_test.go
vendored
@ -32,6 +32,11 @@ var _ = Describe("Spread FS", func() {
|
||||
Expect(parts).To(HaveLen(4))
|
||||
Expect(parts[3]).To(HaveLen(40))
|
||||
})
|
||||
It("returns the unmodified key if it is a cache file path", func() {
|
||||
mapped := fs.KeyMapper("abc")
|
||||
Expect(mapped).To(HavePrefix(fs.root))
|
||||
Expect(fs.KeyMapper(mapped)).To(Equal(mapped))
|
||||
})
|
||||
})
|
||||
|
||||
Describe("Reload", func() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user