From 381e363a8bf382918fa1f44d908df13472c1328c Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Fri, 17 Feb 2023 16:55:41 +0300 Subject: [PATCH] [#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 --- pkg/local_object_storage/internal/storagetest/storage.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/local_object_storage/internal/storagetest/storage.go b/pkg/local_object_storage/internal/storagetest/storage.go index 9fbf689a..74400a98 100644 --- a/pkg/local_object_storage/internal/storagetest/storage.go +++ b/pkg/local_object_storage/internal/storagetest/storage.go @@ -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()) }) }