Merge develop
This commit is contained in:
4
adapter/cache/memcache/memcache_test.go
vendored
4
adapter/cache/memcache/memcache_test.go
vendored
@@ -86,8 +86,8 @@ func TestMemcacheCache(t *testing.T) {
|
||||
|
||||
vv := bm.GetMulti([]string{"astaxie", "astaxie1"})
|
||||
assert.Equal(t, 2, len(vv))
|
||||
assert.Equal(t, "author", vv[0])
|
||||
assert.Equal(t, "author1", vv[1])
|
||||
assert.Equal(t, []byte("author"), vv[0])
|
||||
assert.Equal(t, []byte("author1"), vv[1])
|
||||
|
||||
assert.Nil(t, bm.ClearAll())
|
||||
}
|
||||
|
||||
2
adapter/cache/redis/redis_test.go
vendored
2
adapter/cache/redis/redis_test.go
vendored
@@ -83,7 +83,7 @@ func TestRedisCache(t *testing.T) {
|
||||
|
||||
assert.Nil(t, bm.Put("astaxie1", "author1", timeoutDuration))
|
||||
|
||||
assert.False(t, bm.IsExist("astaxie1"))
|
||||
assert.True(t, bm.IsExist("astaxie1"))
|
||||
|
||||
vv := bm.GetMulti([]string{"astaxie", "astaxie1"})
|
||||
|
||||
|
||||
2
adapter/cache/ssdb/ssdb_test.go
vendored
2
adapter/cache/ssdb/ssdb_test.go
vendored
@@ -37,7 +37,7 @@ func TestSsdbcacheCache(t *testing.T) {
|
||||
assert.Nil(t, ssdb.Put("ssdb", "ssdb", timeoutDuration))
|
||||
assert.True(t, ssdb.IsExist("ssdb"))
|
||||
|
||||
assert.NotNil(t, ssdb.Put("ssdb", "ssdb", timeoutDuration))
|
||||
assert.Nil(t, ssdb.Put("ssdb", "ssdb", timeoutDuration))
|
||||
|
||||
assert.Equal(t, "ssdb", ssdb.Get("ssdb"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user