✨ Load store from config name
This commit is contained in:
parent
25ed67b2e9
commit
c703a26c10
2 changed files with 14 additions and 0 deletions
|
|
@ -45,3 +45,13 @@ func TestMakeStoreNoError(t *testing.T) {
|
|||
assert.NotNil(t, s)
|
||||
assert.NoError(t, e)
|
||||
}
|
||||
|
||||
func TestMakeStoreNoName(t *testing.T) {
|
||||
AddFactory("mock", f)
|
||||
defer delete(factories, "mock")
|
||||
s, e := MakeStore("", config.Config{
|
||||
Conn: config.ConnSettings{Store: "mock"},
|
||||
})
|
||||
assert.NotNil(t, s)
|
||||
assert.NoError(t, e)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue