From c48bf864a48b611b37c0944dfdc8635be8a82064 Mon Sep 17 00:00:00 2001 From: "Andrew Jackson (Ajax)" Date: Thu, 17 Aug 2023 22:34:08 -0500 Subject: [PATCH] Take Download out of Sealer time --- storage/sealer/ffiwrapper/sealer_test.go | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/storage/sealer/ffiwrapper/sealer_test.go b/storage/sealer/ffiwrapper/sealer_test.go index f109eed27..6838b3ca5 100644 --- a/storage/sealer/ffiwrapper/sealer_test.go +++ b/storage/sealer/ffiwrapper/sealer_test.go @@ -412,6 +412,16 @@ func TestSealPoStNoCommit(t *testing.T) { fmt.Printf("EPoSt: %s\n", epost.Sub(precommit).String()) } +func TestMain(m *testing.M) { + //setup() + // Here it no-longer is bound to 30s but has 1m30s for the whole suite. + getGrothParamFileAndVerifyingKeys(sectorSize) + + code := m.Run() + //shutdown() + os.Exit(code) +} + func TestSealAndVerify3(t *testing.T) { if testing.Short() { t.Skip("skipping test in short mode") @@ -424,8 +434,6 @@ func TestSealAndVerify3(t *testing.T) { } _ = os.Setenv("RUST_LOG", "trace") - getGrothParamFileAndVerifyingKeys(sectorSize) - dir, err := os.MkdirTemp("", "sbtest") if err != nil { t.Fatal(err)