瀏覽代碼

fix default go test

xormplus 8 年之前
父節點
當前提交
d45ef32125
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      xorm_test.go

+ 1 - 1
xorm_test.go

@@ -22,7 +22,7 @@ var (
 
 
 	db         = flag.String("db", "sqlite3", "the tested database")
 	db         = flag.String("db", "sqlite3", "the tested database")
 	showSQL    = flag.Bool("show_sql", true, "show generated SQLs")
 	showSQL    = flag.Bool("show_sql", true, "show generated SQLs")
-	ptrConnStr = flag.String("conn_str", "", "test database connection string")
+	ptrConnStr = flag.String("conn_str", "./test.db?cache=shared&mode=rwc", "test database connection string")
 	mapType    = flag.String("map_type", "snake", "indicate the name mapping")
 	mapType    = flag.String("map_type", "snake", "indicate the name mapping")
 	cache      = flag.Bool("cache", false, "if enable cache")
 	cache      = flag.Bool("cache", false, "if enable cache")
 )
 )