[#493] node/config: Export useful functions into a separate test package
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
c645781b98
commit
b8a5f09174
4 changed files with 39 additions and 29 deletions
|
@ -4,11 +4,12 @@ import (
|
|||
"testing"
|
||||
|
||||
"github.com/nspcc-dev/neofs-node/cmd/neofs-node/config"
|
||||
configtest "github.com/nspcc-dev/neofs-node/cmd/neofs-node/config/test"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestConfigCommon(t *testing.T) {
|
||||
forEachFileType("test/config", func(c *config.Config) {
|
||||
configtest.ForEachFileType("test/config", func(c *config.Config) {
|
||||
val := c.Value("value")
|
||||
require.NotNil(t, val)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue