[#32] node: Always close general components after testing

It will prevent test fails with `-race` flag on components that have
background processes and make some actions on test framework.

Signed-off-by: Pavel Karpy <p.karpy@yadro.com>
fix/139-unit_test_storage
Pavel Karpy 2023-02-17 16:55:41 +03:00 committed by Gitea
parent 20de74a505
commit 381e363a8b
1 changed files with 1 additions and 0 deletions

View File

@ -106,6 +106,7 @@ func TestSetMode(t *testing.T, cons Constructor, m mode.Mode) {
require.NoError(t, s.Open(false))
require.NoError(t, s.Init())
require.NoError(t, s.SetMode(m))
require.NoError(t, s.Close())
})
}