ci: Ensure params in sealer tests
This commit is contained in:
parent
4223e411b6
commit
d83956aa6d
@ -6,6 +6,9 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"github.com/filecoin-project/go-paramfetch"
|
||||||
|
"github.com/filecoin-project/lotus/build"
|
||||||
|
"golang.org/x/xerrors"
|
||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
@ -198,6 +201,16 @@ func (m NullReader) NullBytes() int64 {
|
|||||||
return m.N
|
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) {
|
func TestSnapDeals(t *testing.T) {
|
||||||
logging.SetAllLoggers(logging.LevelWarn)
|
logging.SetAllLoggers(logging.LevelWarn)
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
|
Loading…
Reference in New Issue
Block a user