Skip to content
This repository was archived by the owner on Jun 6, 2023. It is now read-only.

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Dec 16, 2020
1 parent 374fcf2 commit fc028ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion actors/builtin/miner/testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ func CheckDeadlineStateInvariants(deadline *Deadline, store adt.Store, quant Qua
acc.RequireNoError(err, "failed to load proofs")
var post WindowedPoSt
err = proofs.ForEach(&post, func(idx int64) error {
acc.Require(len(post.Proofs) == 0, "invalid number of proofs")
// This is allowed to be 0 for testing.
//acc.Require(len(post.Proofs) == 0, "invalid number of proofs")
contains, err := util.BitFieldContainsAll(expectedPoSts, post.Partitions)
acc.RequireNoError(err, "failed to check if posts were expected")
acc.Require(contains, "unexpected post")
Expand Down

0 comments on commit fc028ac

Please sign in to comment.