Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张磊
/
FileStorageBeego
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
d3ab1579
authored
2014-12-19 14:40:16 +0800
by
astaxie
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix the cache test
1 parent
75d28d49
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
cache/cache_test.go
cache/cache_test.go
View file @
d3ab157
...
...
@@ -15,6 +15,7 @@
package
cache
import
(
"os"
"testing"
"time"
)
...
...
@@ -67,7 +68,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"
)
}
...
...
@@ -112,4 +113,5 @@ func TestFileCache(t *testing.T) {
if
v
:=
bm
.
Get
(
"astaxie"
);
v
.
(
string
)
!=
"author"
{
t
.
Error
(
"get err"
)
}
os
.
RemoveAll
(
"cache"
)
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment