[#541] writecache/test: Close writecache on exit

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2023-07-27 19:59:00 +03:00 committed by Evgenii Stratonikov
parent ad5f527bd3
commit ec8b4fdc48

View file

@ -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())