for issue #1530, accept @JessonChan's suggestion

This commit is contained in:
youngsterxyf
2016-01-08 20:16:58 +08:00
parent bb43d3a78c
commit 0b0904db13
9 changed files with 11 additions and 11 deletions

4
cache/cache_test.go vendored
View File

@@ -25,7 +25,7 @@ func TestCache(t *testing.T) {
if err != nil {
t.Error("init err")
}
timeoutDuration := time.Second * 10
timeoutDuration := 10 * time.Second
if err = bm.Put("astaxie", 1, timeoutDuration); err != nil {
t.Error("set Error", err)
}
@@ -102,7 +102,7 @@ func TestFileCache(t *testing.T) {
if err != nil {
t.Error("init err")
}
timeoutDuration := time.Second * 10
timeoutDuration := 10 * time.Second
if err = bm.Put("astaxie", 1, timeoutDuration); err != nil {
t.Error("set Error", err)
}