[#730] node/config/morph: Add disable_cache
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
cb842096d4
commit
c423aa432a
7 changed files with 13 additions and 2 deletions
|
@ -17,6 +17,7 @@ func TestMorphSection(t *testing.T) {
|
|||
require.Panics(t, func() { morphconfig.RPCEndpoint(empty) })
|
||||
require.Panics(t, func() { morphconfig.NotificationEndpoint(empty) })
|
||||
require.Equal(t, morphconfig.DialTimeoutDefault, morphconfig.DialTimeout(empty))
|
||||
require.Equal(t, false, morphconfig.DisableCache(empty))
|
||||
})
|
||||
|
||||
const path = "../../../../config/example/node"
|
||||
|
@ -37,6 +38,7 @@ func TestMorphSection(t *testing.T) {
|
|||
require.Equal(t, rpcs, morphconfig.RPCEndpoint(c))
|
||||
require.Equal(t, wss, morphconfig.NotificationEndpoint(c))
|
||||
require.Equal(t, 30*time.Second, morphconfig.DialTimeout(c))
|
||||
require.Equal(t, true, morphconfig.DisableCache(c))
|
||||
}
|
||||
|
||||
configtest.ForEachFileType(path, fileConfigTest)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue