snapdeals cleanup: address review

This commit is contained in:
Łukasz Magiera 2022-11-28 23:03:07 +01:00
parent ea9a8303c8
commit 8d090ba6b8
2 changed files with 4 additions and 2 deletions

View File

@ -225,6 +225,8 @@ func (tm *TestMiner) SectorsListNonGenesis(ctx context.Context) ([]abi.SectorNum
return l[tm.PresealSectors:], nil
}
// comes from https://github.com/filecoin-project/lotus/blob/8ba4355cabd25e5f65261aaa561ff676321ffbd8/storage/sealer/manager.go#L1226
// todo: have this defined in one place
type SchedInfo struct {
CallToWork struct{}
EarlyRet interface{}

View File

@ -92,7 +92,7 @@ func TestWorkerUpgradeAbortCleanup(t *testing.T) {
case id == wpaths[0].ID: // worker path
if workers != storiface.FTNone {
require.Len(t, decls, 1)
require.EqualValues(t, decls[0].SectorFileType.Strings(), workers.Strings())
require.EqualValues(t, workers.Strings(), decls[0].SectorFileType.Strings())
} else {
require.Len(t, decls, 0)
}
@ -101,7 +101,7 @@ func TestWorkerUpgradeAbortCleanup(t *testing.T) {
default: // miner path
if miners != storiface.FTNone {
require.Len(t, decls, 1)
require.EqualValues(t, decls[0].SectorFileType.Strings(), miners.Strings())
require.EqualValues(t, miners.Strings(), decls[0].SectorFileType.Strings())
} else {
require.Len(t, decls, 0)
}