Add missing test case for #1778
This commit is contained in:
parent
321b3c5a64
commit
35bec14d4d
1 changed files with 5 additions and 0 deletions
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…
Reference in a new issue