test(lotus-sim): test commit-queue rollover

This commit is contained in:
Steven Allen 2021-06-07 21:41:40 -07:00
parent 0725019bdb
commit f9ebe3017d

View File

@ -115,4 +115,12 @@ func TestCommitQueue(t *testing.T) {
require.True(t, ok)
require.Equal(t, sectors.count(), 2)
require.EqualValues(t, []abi.SectorNumber{5, 6}, sectors[proofType])
// 8
epoch += 2
q.advanceEpoch(epoch)
_, sectors, ok = q.nextMiner()
require.True(t, ok)
require.Equal(t, sectors.count(), 2)
require.EqualValues(t, []abi.SectorNumber{5, 6}, sectors[proofType])
}