mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-27 05:38:55 +00:00
95fd399dbe
* lvl debug * Merge refs/heads/master into change-log-level * Merge refs/heads/master into change-log-level * tidy * Merge refs/heads/master into change-log-level * Merge refs/heads/master into change-log-level * Merge refs/heads/master into change-log-level * Merge refs/heads/master into change-log-level * Merge refs/heads/master into change-log-level * Merge refs/heads/master into change-log-level * Merge refs/heads/master into change-log-level * Merge refs/heads/master into change-log-level * Merge refs/heads/master into change-log-level * Merge refs/heads/master into change-log-level * Merge refs/heads/master into change-log-level * Merge refs/heads/master into change-log-level * Merge refs/heads/master into change-log-level * Merge refs/heads/master into change-log-level * Merge refs/heads/master into change-log-level * fix log level error * victor feedback * Merge refs/heads/master into change-log-level
25 lines
497 B
Go
25 lines
497 B
Go
package validator
|
|
|
|
import (
|
|
"io/ioutil"
|
|
"os"
|
|
"testing"
|
|
|
|
"github.com/prysmaticlabs/prysm/shared/params"
|
|
"github.com/sirupsen/logrus"
|
|
)
|
|
|
|
func TestMain(m *testing.M) {
|
|
logrus.SetLevel(logrus.DebugLevel)
|
|
logrus.SetOutput(ioutil.Discard)
|
|
// 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)
|
|
}
|