CI-glog失败重测

This commit is contained in:
糖水不加糖
2020-08-12 10:32:40 +08:00
parent 0a3cd1d2ab
commit bcf45e3c5a

View File

@ -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)
})
}