prysm-pulse/beacon-chain/sync/sync_test.go
Victor Farazdagi 471779e4fc
Fixes bug with excessive rate limiting (#5853)
* fixes bug with excessive rate limiting
2020-05-14 13:43:36 +00:00

20 lines
295 B
Go

package sync
import (
"io/ioutil"
"os"
"testing"
"github.com/sirupsen/logrus"
)
func TestMain(m *testing.M) {
logrus.SetLevel(logrus.DebugLevel)
logrus.SetOutput(ioutil.Discard)
allowedBlocksPerSecond = 64
allowedBlocksBurst = int64(10 * allowedBlocksPerSecond)
os.Exit(m.Run())
}