Add missing test case for #1778

This commit is contained in:
Deluan 2022-07-25 23:34:09 -04:00
parent 321b3c5a64
commit 35bec14d4d

View File

@ -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() {