2021-03-18 21:00:00 +00:00
|
|
|
package kv
|
|
|
|
|
|
|
|
import (
|
2023-10-30 05:52:36 +00:00
|
|
|
"io"
|
|
|
|
"os"
|
|
|
|
"testing"
|
|
|
|
|
2023-03-17 18:52:56 +00:00
|
|
|
"github.com/prysmaticlabs/prysm/v4/config/params"
|
2023-10-30 05:52:36 +00:00
|
|
|
"github.com/sirupsen/logrus"
|
2021-03-18 21:00:00 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
// Override network name so that hardcoded genesis files are not loaded.
|
2022-05-20 07:16:53 +00:00
|
|
|
if err := params.SetActive(params.MainnetTestConfig()); err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
2021-03-18 21:00:00 +00:00
|
|
|
}
|
2023-10-30 05:52:36 +00:00
|
|
|
|
|
|
|
func TestMain(m *testing.M) {
|
|
|
|
logrus.SetLevel(logrus.DebugLevel)
|
|
|
|
logrus.SetOutput(io.Discard)
|
|
|
|
os.Exit(m.Run())
|
|
|
|
}
|