From b52fada6daaaa691cc6e769493e53671350e38d7 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 658ff71da..1578c3a4e 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()) }) }