mirror of
https://gitee.com/johng/gf
synced 2026-06-06 16:21:40 +08:00
unit test case updates for gdb
This commit is contained in:
@ -315,6 +315,9 @@ func Test_Model_Safe(t *testing.T) {
|
||||
})
|
||||
|
||||
gtest.Case(t, func() {
|
||||
db.SetDebug(true)
|
||||
defer db.SetDebug(false)
|
||||
|
||||
table := createInitTable()
|
||||
defer dropTable(table)
|
||||
|
||||
|
||||
@ -26,8 +26,7 @@ test = "v=2"
|
||||
host = "127.0.0.1"
|
||||
port = "3306"
|
||||
user = "root"
|
||||
pass = ""
|
||||
# pass = "12345678"
|
||||
pass = "12345678"
|
||||
name = "test"
|
||||
type = "mysql"
|
||||
role = "master"
|
||||
@ -37,8 +36,7 @@ test = "v=2"
|
||||
host = "127.0.0.1"
|
||||
port = "3306"
|
||||
user = "root"
|
||||
pass = ""
|
||||
# pass = "12345678"
|
||||
pass = "12345678"
|
||||
name = "test"
|
||||
type = "mysql"
|
||||
role = "master"
|
||||
@ -47,7 +45,7 @@ test = "v=2"
|
||||
# Redis数据库配置
|
||||
[redis]
|
||||
default = "127.0.0.1:6379,0"
|
||||
cache = "127.0.0.1:6379,1"
|
||||
cache = "127.0.0.1:6379,1"
|
||||
`
|
||||
path := "config.toml"
|
||||
err := gfile.PutContents(path, config)
|
||||
|
||||
Reference in New Issue
Block a user