mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-16 06:58:20 +00:00
21 lines
405 B
Go
21 lines
405 B
Go
|
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)
|
||
|
}
|