Skip to content

Commit

Permalink
address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
frrist committed Jun 29, 2022
1 parent bc10193 commit 1082f66
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tasks/actorstate/miner/sector_events_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func TestExtractMinerSectorEvents(t *testing.T) {
sort.Slice(snapped, func(i, j int) bool {
return snapped[i].SectorID < snapped[j].SectorID
})
for i, e := range events[minermodel.SectorSnapped] {
for i, e := range snapped {
require.Equal(t, minermodel.SectorSnapped, e.Event)
require.Equal(t, int64(ts.Height()), e.Height)
require.Equal(t, addr.String(), e.MinerID)
Expand Down Expand Up @@ -326,7 +326,7 @@ func TestExtractSectorEvents(t *testing.T) {
sort.Slice(snapped, func(i, j int) bool {
return snapped[i].SectorID < snapped[j].SectorID
})
for i, e := range events[minermodel.SectorSnapped] {
for i, e := range snapped {
require.Equal(t, minermodel.SectorSnapped, e.Event)
require.Equal(t, int64(ts.Height()), e.Height)
require.Equal(t, addr.String(), e.MinerID)
Expand Down Expand Up @@ -393,7 +393,6 @@ func TestExtractSectorEvents(t *testing.T) {
require.Equal(t, minermodel.PreCommitAdded, res.Event)
require.EqualValues(t, fakePrecommitChanges.Added[i].Info.SectorNumber, res.SectorID)
}

}

func generateFakeSectorOnChainInfo(sectorNumber uint64, dealIDs ...abi.DealID) miner.SectorOnChainInfo {
Expand Down Expand Up @@ -461,7 +460,6 @@ func generateFakeSectorPreCommitChanges(add uint64, rm uint64) *miner.PreCommitC
Added: added,
Removed: removed,
}

}

func generateFakePartitionDiff(removed, recovered, faulted, recovering uint64) *miner.PartitionDiff {
Expand Down

0 comments on commit 1082f66

Please sign in to comment.