1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-13 20:23:32 +00:00

fix bug on cache/file

This commit is contained in:
Wusuluren 2019-04-05 22:32:28 +08:00
parent 1900246054
commit dfab44c24a

2
cache/cache_test.go vendored
View File

@ -98,7 +98,7 @@ func TestCache(t *testing.T) {
}
func TestFileCache(t *testing.T) {
bm, err := NewCache("file", `{"CachePath":"cache","FileSuffix":".bin","DirectoryLevel":2,"EmbedExpiry":0}`)
bm, err := NewCache("file", `{"CachePath":"cache","FileSuffix":".bin","DirectoryLevel":"2","EmbedExpiry":"0"}`)
if err != nil {
t.Error("init err")
}