Fix tests using 1k sectors

This commit is contained in:
Łukasz Magiera 2019-12-03 02:55:10 +01:00
parent dab80b30f6
commit 7d13b28439
2 changed files with 7 additions and 0 deletions

View File

@ -2,8 +2,14 @@ package gen
import (
"testing"
"github.com/filecoin-project/lotus/build"
)
func init() {
build.SectorSizes = []uint64{1024}
}
func testGeneration(t testing.TB, n int, msgs int) {
g, err := NewGenerator()
if err != nil {

View File

@ -27,6 +27,7 @@ import (
func init() {
build.InsecurePoStValidation = true
os.Setenv("TRUST_PARAMS", "1")
build.SectorSizes = []uint64{1024}
}
const source = 0