fix a merge error.

This commit is contained in:
Raúl Kripalani 2021-06-10 00:00:06 +01:00
parent 8ea7398d38
commit 39c19a0fe5

View File

@ -155,7 +155,7 @@ func TestWindowPostDispute(t *testing.T) {
for {
di, err = client.StateMinerProvingDeadline(ctx, evilMinerAddr, types.EmptyTSK)
require.NoError(t, err)
if di.Index == evilSectorLoc.Deadline && di.CurrentEpoch-di.PeriodStart > 1 {
if di.Index != evilSectorLoc.Deadline {
break
}
build.Clock.Sleep(blocktime)