mirror of
https://gitee.com/johng/gf
synced 2026-06-06 16:21:40 +08:00
CI-glog失败重测
This commit is contained in:
@ -80,8 +80,11 @@ func TestCache_SetVar(t *testing.T) {
|
||||
gtest.C(t, func(t *gtest.T) {
|
||||
cache := gcache.New()
|
||||
cache.Set(1, 11, 3*time.Second)
|
||||
expireBefore, _ := cache.GetExpire(1)
|
||||
cache.SetVar(1, 12)
|
||||
expireAfter, _ := cache.GetExpire(1)
|
||||
t.Assert(cache.GetVar(1), 12)
|
||||
t.Assert(expireBefore, expireAfter)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user