Merge pull request #1005 from trheyi/main
Set default prefix in Prepare function for test environment
This commit is contained in:
commit
f0489a3838
1 changed files with 5 additions and 0 deletions
|
|
@ -187,6 +187,11 @@ func Prepare(t *testing.T, cfg config.Config, rootEnv ...string) {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set default prefix
|
||||||
|
if share.App.Prefix == "" {
|
||||||
|
share.App.Prefix = "yao_"
|
||||||
|
}
|
||||||
|
|
||||||
utils.Init()
|
utils.Init()
|
||||||
dbconnect(t, cfg)
|
dbconnect(t, cfg)
|
||||||
load(t, cfg)
|
load(t, cfg)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue