feat(users): add init functions
This commit is contained in:
parent
57124451ad
commit
2bcb337b4c
7 changed files with 156 additions and 53 deletions
|
@ -16,8 +16,16 @@ import (
|
|||
)
|
||||
|
||||
func startTestServer(config string) *Server {
|
||||
cfg, err := gocfg.New(NewDefaultConfig()).
|
||||
Load(gocfg.JSONStr(config))
|
||||
defaultCfg, err := DefaultConfig()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
cfg, err := gocfg.New(NewConfig()).
|
||||
Load(
|
||||
gocfg.JSONStr(defaultCfg),
|
||||
gocfg.JSONStr(config),
|
||||
)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue