Fix datarace in writecache tests #548

Merged
fyrchik merged 2 commits from fyrchik/frostfs-node:fix-writecache into master 2023-07-29 10:57:27 +00:00
Showing only changes of commit 2f4483b224 - Show all commits

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