diff --git a/pkg/local_object_storage/writecache/flush_test.go b/pkg/local_object_storage/writecache/flush_test.go index 1d471e5eb..997d23a3d 100644 --- a/pkg/local_object_storage/writecache/flush_test.go +++ b/pkg/local_object_storage/writecache/flush_test.go @@ -64,6 +64,7 @@ func TestFlush(t *testing.T) { WithMetabase(mb), WithBlobstor(bs), }, opts...)...) + t.Cleanup(func() { require.NoError(t, wc.Close()) }) require.NoError(t, wc.Open(false)) require.NoError(t, wc.Init())