Address review

This commit is contained in:
Łukasz Magiera 2020-07-17 18:23:19 +02:00
parent 4b74aa5768
commit 4e1e9ecf3e
2 changed files with 3 additions and 5 deletions

View File

@ -369,8 +369,8 @@ type MinerSectors struct {
type SectorExpiration struct {
OnTime abi.ChainEpoch
// non-zero if sector is faulty, epoch at which it will it will be
// permanently removed if it doesn't recover
// non-zero if sector is faulty, epoch at which it will be permanently
// removed if it doesn't recover
Early abi.ChainEpoch
}

View File

@ -191,17 +191,15 @@ func startSealingWaiting(t *testing.T, ctx context.Context, miner TestStorageNod
snums, err := miner.SectorsList(ctx)
require.NoError(t, err)
fmt.Printf("Miner sector states: ")
for _, snum := range snums {
si, err := miner.SectorsStatus(ctx, snum)
require.NoError(t, err)
fmt.Printf("%s ", si.State)
t.Logf("Sector state: %s", si.State)
if si.State == api.SectorState(sealing.WaitDeals) {
require.NoError(t, miner.SectorStartSealing(ctx, snum))
}
}
fmt.Println("")
}
func testRetrieval(t *testing.T, ctx context.Context, err error, client *impl.FullNodeAPI, fcid cid.Cid, piece *cid.Cid, carExport bool, data []byte) {