test(sitestore): fix site store not inited
This commit is contained in:
parent
1fa868ed95
commit
476e231639
1 changed files with 12 additions and 0 deletions
|
@ -51,6 +51,18 @@ func TestSiteStore(t *testing.T) {
|
|||
if err != nil {
|
||||
t.Fatal("fail to new kvstore", err)
|
||||
}
|
||||
err = store.Init(&SiteConfig{
|
||||
ClientCfg: &ClientConfig{
|
||||
SiteName: "",
|
||||
SiteDesc: "",
|
||||
Bg: &BgConfig{
|
||||
Url: "",
|
||||
Repeat: "",
|
||||
Position: "",
|
||||
Align: "",
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
testSiteMethods(t, store)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue