mirror of
https://github.com/silenceper/wechat.git
synced 2026-02-08 06:32:27 +08:00
improve comment ,参考:https://github.com/huacnlee/autocorrect
This commit is contained in:
5
cache/redis_test.go
vendored
5
cache/redis_test.go
vendored
@@ -35,7 +35,10 @@ func TestRedis(t *testing.T) {
|
||||
t.Error("IsExist Error")
|
||||
}
|
||||
|
||||
name := redis.Get(key).(string)
|
||||
name, ok := redis.Get(key).(string)
|
||||
if !ok {
|
||||
t.Error("get Error")
|
||||
}
|
||||
if name != val {
|
||||
t.Error("get Error")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user