[#541] writecache/test: Remove initWC()

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

View file

@ -65,7 +65,7 @@ func TestFlush(t *testing.T) {
WithBlobstor(bs),
}, opts...)...)
require.NoError(t, wc.Open(false))
initWC(t, wc)
require.NoError(t, wc.Init())
// First set mode for metabase and blobstor to prevent background flushes.
require.NoError(t, mb.SetMode(mode.ReadOnly))
@ -229,10 +229,6 @@ func newObject(t *testing.T, size int) (*objectSDK.Object, []byte) {
return obj, data
}
func initWC(t *testing.T, wc Cache) {
require.NoError(t, wc.Init())
}
type dummyEpoch struct{}
func (dummyEpoch) CurrentEpoch() uint64 {