From db72bb1f1b575bc7bc71e942ae54de910fe10a3b Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 27 Feb 2020 10:11:34 +0800 Subject: [PATCH] Fix test --- core/db_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/db_test.go b/core/db_test.go index 9abc7a64..777ab0ad 100644 --- a/core/db_test.go +++ b/core/db_test.go @@ -11,14 +11,15 @@ import ( "testing" "time" + "xorm.io/xorm/names" + _ "github.com/go-sql-driver/mysql" _ "github.com/mattn/go-sqlite3" - "xorm.io/xorm/names" ) var ( - dbtype = flag.String("dbtype", "mysql", "database type") - dbConn = flag.String("dbConn", "root:@/core_test?charset=utf8", "database connect string") + dbtype = flag.String("dbtype", "sqlite3", "database type") + dbConn = flag.String("dbConn", "./db_test.db", "database connect string") createTableSql string )