mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-27 21:57:16 +00:00
21 lines
384 B
Go
21 lines
384 B
Go
|
package validator
|
||
|
|
||
|
import (
|
||
|
"os"
|
||
|
"testing"
|
||
|
|
||
|
"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())
|
||
|
|
||
|
retVal := m.Run()
|
||
|
|
||
|
// Reset configuration.
|
||
|
params.OverrideBeaconConfig(prevConfig)
|
||
|
os.Exit(retVal)
|
||
|
}
|