1
0
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:
Ming Deng
2020-07-19 12:56:58 +00:00
parent 9d936c58bf
commit 192a278a2a
10 changed files with 43 additions and 3094 deletions

View File

@ -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 {