prysm-pulse/beacon-chain/rpc/beacon/beacon_test.go

21 lines
405 B
Go
Raw Normal View History

package beacon
import (
"os"
"testing"
"github.com/prysmaticlabs/prysm/beacon-chain/flags"
"github.com/prysmaticlabs/prysm/shared/params"
)
func TestMain(m *testing.M) {
// Use minimal config to reduce test setup time.
reset := params.OverrideBeaconConfigWithReset(params.MinimalSpecConfig())
flags.Init(&flags.GlobalFlags{
MaxPageSize: 250,
})
retVal := m.Run()
reset()
os.Exit(retVal)
}