2020-05-14 16:43:36 +03:00
|
|
|
package sync
|
|
|
|
|
|
|
|
import (
|
|
|
|
"io/ioutil"
|
|
|
|
"testing"
|
|
|
|
|
2021-03-02 13:36:03 -06:00
|
|
|
"github.com/prysmaticlabs/prysm/cmd/beacon-chain/flags"
|
2020-05-14 16:43:36 +03:00
|
|
|
"github.com/sirupsen/logrus"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestMain(m *testing.M) {
|
2020-12-04 19:10:07 +03:00
|
|
|
logrus.SetLevel(logrus.DebugLevel)
|
|
|
|
logrus.SetOutput(ioutil.Discard)
|
2020-05-14 16:43:36 +03:00
|
|
|
|
2020-12-04 19:10:07 +03:00
|
|
|
resetFlags := flags.Get()
|
|
|
|
flags.Init(&flags.GlobalFlags{
|
|
|
|
BlockBatchLimit: 64,
|
|
|
|
BlockBatchLimitBurstFactor: 10,
|
|
|
|
})
|
|
|
|
defer func() {
|
|
|
|
flags.Init(resetFlags)
|
|
|
|
}()
|
|
|
|
m.Run()
|
2020-05-14 16:43:36 +03:00
|
|
|
}
|