mirror of
https://github.com/astaxie/beego.git
synced 2025-07-04 09:30:17 +00:00
Orm: Add tidb for query builder
This commit is contained in:
@ -26,6 +26,8 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/juju/errors"
|
||||
)
|
||||
|
||||
var _ = os.PathSeparator
|
||||
@ -133,6 +135,7 @@ func throwFail(t *testing.T, err error, args ...interface{}) {
|
||||
}
|
||||
con += " " + strings.Join(parts, ", ")
|
||||
}
|
||||
t.Error(errors.ErrorStack(err))
|
||||
t.Error(con)
|
||||
t.Fail()
|
||||
}
|
||||
@ -172,7 +175,7 @@ func TestSyncDb(t *testing.T) {
|
||||
RegisterModel(new(UserBig))
|
||||
RegisterModel(new(PostTags))
|
||||
|
||||
err := RunSyncdb("default", true, false)
|
||||
err := RunSyncdb("default", true, true)
|
||||
throwFail(t, err)
|
||||
|
||||
modelCache.clean()
|
||||
|
Reference in New Issue
Block a user