satellite/repair/checker: set erasure share size in tests (#3101)

This commit is contained in:
Egon Elbre 2019-09-24 10:01:48 +03:00 committed by GitHub
parent a7040647a4
commit ab3e3f827c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,6 +100,7 @@ func TestIdentifyIrreparableSegments(t *testing.T) {
CreationDate: time.Now(),
Remote: &pb.RemoteSegment{
Redundancy: &pb.RedundancyScheme{
ErasureShareSize: int32(256),
MinReq: int32(4),
RepairThreshold: int32(8),
SuccessThreshold: int32(9),
@ -151,6 +152,7 @@ func TestIdentifyIrreparableSegments(t *testing.T) {
CreationDate: time.Now(),
Remote: &pb.RemoteSegment{
Redundancy: &pb.RedundancyScheme{
ErasureShareSize: int32(256),
MinReq: int32(2),
RepairThreshold: int32(8),
SuccessThreshold: int32(9),
@ -207,6 +209,7 @@ func makePointer(t *testing.T, planet *testplanet.Planet, pointerPath string, cr
RepairThreshold: int32(repairThreshold),
SuccessThreshold: int32(repairThreshold) + 1,
Total: int32(repairThreshold) + 2,
ErasureShareSize: int32(256),
},
RootPieceId: testrand.PieceID(),
RemotePieces: pieces,