lotus/storage/sealer/proofpaths/cachefiles_test.go

21 lines
533 B
Go
Raw Normal View History

2023-06-28 11:56:00 +00:00
package proofpaths
import (
"testing"
"github.com/stretchr/testify/require"
"github.com/filecoin-project/go-state-types/abi"
)
func TestSDRLayersDefined(t *testing.T) {
for proof := range abi.SealProofInfos {
// TODO: Drop after feat/nv21 is merged in (that is, when SynthPoRep changes land)
if proof >= abi.RegisteredSealProof_StackedDrg2KiBV1_1_Feat_SyntheticPoRep && proof <= abi.RegisteredSealProof_StackedDrg64GiBV1_1_Feat_SyntheticPoRep {
continue
}
2023-06-28 11:56:00 +00:00
_, err := SDRLayers(proof)
require.NoError(t, err)
}
}