From d83956aa6d439a2faa8a4b48b72f31c8695faa61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Mon, 28 Aug 2023 13:43:50 +0200 Subject: [PATCH] ci: Ensure params in sealer tests --- storage/sealer/manager_test.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/storage/sealer/manager_test.go b/storage/sealer/manager_test.go index 8acd474a3..14eb21ddc 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()