remove orm debug setting from test case

This commit is contained in:
Tan Jiang 2017-06-14 16:11:23 +08:00
parent ae2d868fd4
commit 8590c8d6bb

View File

@ -134,12 +134,6 @@ const publicityOn = 1
const publicityOff = 0
func TestMain(m *testing.M) {
orm.Debug = true
f, err := os.Create("/root/jtdbtest.out")
if err != nil {
panic(err)
}
orm.DebugLog = orm.NewLog(f)
databases := []string{"mysql", "sqlite"}
for _, database := range databases {
log.Infof("run test cases for database: %s", database)