forked from TrueCloudLab/frostfs-node
[#541] writecache/test: Remove initWC()
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
ea32913430
commit
ad5f527bd3
1 changed files with 1 additions and 5 deletions
|
@ -65,7 +65,7 @@ func TestFlush(t *testing.T) {
|
||||||
WithBlobstor(bs),
|
WithBlobstor(bs),
|
||||||
}, opts...)...)
|
}, opts...)...)
|
||||||
require.NoError(t, wc.Open(false))
|
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.
|
// First set mode for metabase and blobstor to prevent background flushes.
|
||||||
require.NoError(t, mb.SetMode(mode.ReadOnly))
|
require.NoError(t, mb.SetMode(mode.ReadOnly))
|
||||||
|
@ -229,10 +229,6 @@ func newObject(t *testing.T, size int) (*objectSDK.Object, []byte) {
|
||||||
return obj, data
|
return obj, data
|
||||||
}
|
}
|
||||||
|
|
||||||
func initWC(t *testing.T, wc Cache) {
|
|
||||||
require.NoError(t, wc.Init())
|
|
||||||
}
|
|
||||||
|
|
||||||
type dummyEpoch struct{}
|
type dummyEpoch struct{}
|
||||||
|
|
||||||
func (dummyEpoch) CurrentEpoch() uint64 {
|
func (dummyEpoch) CurrentEpoch() uint64 {
|
||||||
|
|
Loading…
Reference in a new issue