mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-24 12:27:18 +00:00
471779e4fc
* fixes bug with excessive rate limiting
20 lines
295 B
Go
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())
|
|
}
|