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 c273cbd
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 @@ -21,13 +21,16 @@ import (
logging "github.com/ipfs/go-log/v2"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"golang.org/x/xerrors"

ffi "github.com/filecoin-project/filecoin-ffi"
"github.com/filecoin-project/go-paramfetch"
"github.com/filecoin-project/go-state-types/abi"
"github.com/filecoin-project/go-state-types/proof"
"github.com/filecoin-project/go-statestore"
proof7 "github.com/filecoin-project/specs-actors/v7/actors/runtime/proof"

"github.com/filecoin-project/lotus/build"
"github.com/filecoin-project/lotus/storage/paths"
"github.com/filecoin-project/lotus/storage/sealer/ffiwrapper"
"github.com/filecoin-project/lotus/storage/sealer/fsutil"
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 c273cbd

Please sign in to comment.