Skip to content

Commit

Permalink
ci: Ensure params in sealer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k authored and Stebalien committed Nov 21, 2023
1 parent b78f9ce commit 464514b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions storage/sealer/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 464514b

Please sign in to comment.