mirror of
https://github.com/astaxie/beego.git
synced 2025-06-11 10:10:40 +00:00
duration change to second
This commit is contained in:
2
cache/ssdb/ssdb_test.go
vendored
2
cache/ssdb/ssdb_test.go
vendored
@ -18,7 +18,7 @@ func TestSsdbcacheCache(t *testing.T) {
|
||||
if ssdb.IsExist("ssdb") {
|
||||
t.Error("check err")
|
||||
}
|
||||
timeoutDuration := 10 * time.Second
|
||||
timeoutDuration := 10
|
||||
//timeoutDuration := -10*time.Second if timeoutDuration is negtive,it means permanent
|
||||
if err = ssdb.Put("ssdb", "ssdb", timeoutDuration*time.Second); err != nil {
|
||||
t.Error("set Error", err)
|
||||
|
Reference in New Issue
Block a user