From f6cf27c7815b446f63aedd3523589672b228113b Mon Sep 17 00:00:00 2001 From: Ignacio Hagopian Date: Wed, 16 Dec 2020 10:15:38 -0300 Subject: [PATCH] improve mocked readpiece Signed-off-by: Ignacio Hagopian --- extern/sector-storage/mock/mock.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extern/sector-storage/mock/mock.go b/extern/sector-storage/mock/mock.go index 6179f40d7..d57fdf0fc 100644 --- a/extern/sector-storage/mock/mock.go +++ b/extern/sector-storage/mock/mock.go @@ -347,7 +347,7 @@ func generateFakePoSt(sectorInfo []proof2.SectorInfo, rpt func(abi.RegisteredSea } func (mgr *SectorMgr) ReadPiece(ctx context.Context, w io.Writer, sectorID storage.SectorRef, offset storiface.UnpaddedByteIndex, size abi.UnpaddedPieceSize, randomness abi.SealRandomness, c cid.Cid) error { - if len(mgr.sectors[sectorID.ID].pieces) > 1 || offset != 0 { + if offset != 0 { panic("implme") }