mirror of
https://github.com/astaxie/beego.git
synced 2025-06-12 08:20:39 +00:00
Fix orm test when using Driver = mysql
This commit is contained in:
6
cache/redis/redis_test.go
vendored
6
cache/redis/redis_test.go
vendored
@ -21,6 +21,7 @@ import (
|
||||
|
||||
"github.com/astaxie/beego/cache"
|
||||
"github.com/gomodule/redigo/redis"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestRedisCache(t *testing.T) {
|
||||
@ -124,9 +125,8 @@ func TestCache_Scan(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Error("scan Error", err)
|
||||
}
|
||||
if len(keys) != 10000 {
|
||||
t.Error("scan all err")
|
||||
}
|
||||
|
||||
assert.Equal(t, 10000, len(keys), "scan all error")
|
||||
|
||||
// clear all
|
||||
if err = bm.ClearAll(); err != nil {
|
||||
|
Reference in New Issue
Block a user