2020-05-14 13:43:36 +00:00
|
|
|
package sync
|
|
|
|
|
|
|
|
import (
|
2022-04-18 20:42:07 +00:00
|
|
|
"io"
|
2020-05-14 13:43:36 +00:00
|
|
|
"testing"
|
|
|
|
|
2023-03-17 18:52:56 +00:00
|
|
|
"github.com/prysmaticlabs/prysm/v4/cmd/beacon-chain/flags"
|
2020-05-14 13:43:36 +00:00
|
|
|
"github.com/sirupsen/logrus"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestMain(m *testing.M) {
|
2020-12-04 16:10:07 +00:00
|
|
|
logrus.SetLevel(logrus.DebugLevel)
|
2022-04-18 20:42:07 +00:00
|
|
|
logrus.SetOutput(io.Discard)
|
2020-05-14 13:43:36 +00:00
|
|
|
|
2020-12-04 16:10:07 +00:00
|
|
|
resetFlags := flags.Get()
|
|
|
|
flags.Init(&flags.GlobalFlags{
|
|
|
|
BlockBatchLimit: 64,
|
|
|
|
BlockBatchLimitBurstFactor: 10,
|
2023-06-15 19:38:08 +00:00
|
|
|
BlobBatchLimit: 8,
|
|
|
|
BlobBatchLimitBurstFactor: 2,
|
2020-12-04 16:10:07 +00:00
|
|
|
})
|
|
|
|
defer func() {
|
|
|
|
flags.Init(resetFlags)
|
|
|
|
}()
|
|
|
|
m.Run()
|
2020-05-14 13:43:36 +00:00
|
|
|
}
|