cmd/tools/segment-verify: remove unused test code
Accidentally added some code to a test. As it is unused, this PR removes it. Change-Id: I7adddc78c5ed747225e365989ab58504a9625ad7
This commit is contained in:
parent
d1d617d654
commit
d23e25ce0f
@ -72,12 +72,6 @@ func TestService_Success(t *testing.T) {
|
||||
err := os.WriteFile(config.PriorityNodesPath, []byte((storj.NodeID{1}).String()+"\n"), 0755)
|
||||
require.NoError(t, err)
|
||||
|
||||
bucketListPath := ctx.File("buckets.csv")
|
||||
err = os.WriteFile(bucketListPath, []byte(`
|
||||
00000000000000000000000000000001,67616c617879
|
||||
00000000000000000000000000000002,7368696e6f6269`), 0755)
|
||||
require.NoError(t, err)
|
||||
|
||||
func() {
|
||||
nodes := map[metabase.NodeAlias]storj.NodeID{}
|
||||
for i := 1; i <= 0xFF; i++ {
|
||||
@ -102,10 +96,6 @@ func TestService_Success(t *testing.T) {
|
||||
metabase := newMetabaseMock(nodes, segments...)
|
||||
verifier := &verifierMock{allSuccess: true}
|
||||
|
||||
metabase.AddStreamIDToBucket(uuid.UUID{1}, "67616c617879", uuid.UUID{0x10, 0x10})
|
||||
metabase.AddStreamIDToBucket(uuid.UUID{2}, "7368696e6f6269", uuid.UUID{0x20, 0x20})
|
||||
metabase.AddStreamIDToBucket(uuid.UUID{2}, "7777777", uuid.UUID{0x30, 0x30})
|
||||
|
||||
service, err := segmentverify.NewService(log.Named("segment-verify"), metabase, verifier, metabase, config)
|
||||
require.NoError(t, err)
|
||||
require.NotNil(t, service)
|
||||
|
Loading…
Reference in New Issue
Block a user