mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-24 12:27:18 +00:00
f3d6dbcc1e
* config params into pkg * gaz Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
26 lines
519 B
Go
26 lines
519 B
Go
package beacon
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/prysmaticlabs/prysm/cmd/beacon-chain/flags"
|
|
"github.com/prysmaticlabs/prysm/config/params"
|
|
)
|
|
|
|
func TestMain(m *testing.M) {
|
|
// Use minimal config to reduce test setup time.
|
|
prevConfig := params.BeaconConfig().Copy()
|
|
defer params.OverrideBeaconConfig(prevConfig)
|
|
params.OverrideBeaconConfig(params.MinimalSpecConfig())
|
|
|
|
resetFlags := flags.Get()
|
|
flags.Init(&flags.GlobalFlags{
|
|
MinimumSyncPeers: 30,
|
|
})
|
|
defer func() {
|
|
flags.Init(resetFlags)
|
|
}()
|
|
|
|
m.Run()
|
|
}
|