2021-08-30 19:32:11 +00:00
|
|
|
package random
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2021-11-19 12:01:15 +00:00
|
|
|
"github.com/prysmaticlabs/prysm/config/features"
|
2021-09-14 16:02:58 +00:00
|
|
|
"github.com/prysmaticlabs/prysm/testing/spectest/shared/phase0/sanity"
|
2021-08-30 19:32:11 +00:00
|
|
|
)
|
|
|
|
|
2021-11-19 12:01:15 +00:00
|
|
|
func TestMain(m *testing.M) {
|
|
|
|
resetCfg := features.InitWithReset(&features.Flags{EnableBalanceTrieComputation: true})
|
|
|
|
defer resetCfg()
|
|
|
|
m.Run()
|
|
|
|
}
|
|
|
|
|
2021-08-30 19:32:11 +00:00
|
|
|
func TestMainnet_Phase0_Random(t *testing.T) {
|
|
|
|
sanity.RunBlockProcessingTest(t, "mainnet", "random/random/pyspec_tests")
|
|
|
|
}
|