mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-27 05:38:55 +00:00
f361450e8d
* update TestMain * fix sync/initial-sync test * restore code in rate limiter * fix rate_limiter tests
20 lines
253 B
Go
20 lines
253 B
Go
package slotutil
|
|
|
|
import (
|
|
"io/ioutil"
|
|
"os"
|
|
"testing"
|
|
|
|
"github.com/sirupsen/logrus"
|
|
)
|
|
|
|
func TestMain(m *testing.M) {
|
|
run := func() int {
|
|
logrus.SetLevel(logrus.DebugLevel)
|
|
logrus.SetOutput(ioutil.Discard)
|
|
|
|
return m.Run()
|
|
}
|
|
os.Exit(run())
|
|
}
|