diff --git a/storage/sealer/manager_test.go b/storage/sealer/manager_test.go index 8acd474a391..14eb21ddc40 100644 --- a/storage/sealer/manager_test.go +++ b/storage/sealer/manager_test.go @@ -6,6 +6,9 @@ import ( "context" "encoding/json" "fmt" + "github.com/filecoin-project/go-paramfetch" + "github.com/filecoin-project/lotus/build" + "golang.org/x/xerrors" "io" "os" "path/filepath" @@ -198,6 +201,16 @@ func (m NullReader) NullBytes() int64 { return m.N } +func TestMain(m *testing.M) { + err := paramfetch.GetParams(context.TODO(), build.ParametersJSON(), build.SrsJSON(), uint64(2048)) + if err != nil { + panic(xerrors.Errorf("failed to acquire Groth parameters for 2KiB sectors: %w", err)) + } + + code := m.Run() + os.Exit(code) +} + func TestSnapDeals(t *testing.T) { logging.SetAllLoggers(logging.LevelWarn) ctx := context.Background()