mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-27 05:38:55 +00:00
e7b24323e6
* Allow other clients to set MaxRPCPageSize * Fixes * Remove default * Add init * Fix default * Set default * Fix Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
25 lines
494 B
Go
25 lines
494 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.
|
|
prevConfig := params.BeaconConfig().Copy()
|
|
params.OverrideBeaconConfig(params.MinimalSpecConfig())
|
|
flags.Init(&flags.GlobalFlags{
|
|
MinimumSyncPeers: 30,
|
|
})
|
|
|
|
retVal := m.Run()
|
|
|
|
// Reset configuration.
|
|
params.OverrideBeaconConfig(prevConfig)
|
|
os.Exit(retVal)
|
|
}
|