1
0
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:
ngaut
2015-09-11 11:24:58 +08:00
parent c73e0395ed
commit c841a77ad6
3 changed files with 7 additions and 4 deletions

View File

@ -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()