mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-26 13:18:57 +00:00
f361450e8d
* update TestMain * fix sync/initial-sync test * restore code in rate limiter * fix rate_limiter tests
25 lines
322 B
Go
25 lines
322 B
Go
package beaconclient
|
|
|
|
import (
|
|
"io/ioutil"
|
|
"os"
|
|
"testing"
|
|
|
|
"github.com/sirupsen/logrus"
|
|
)
|
|
|
|
var (
|
|
_ = Notifier(&Service{})
|
|
_ = ChainFetcher(&Service{})
|
|
)
|
|
|
|
func TestMain(m *testing.M) {
|
|
run := func() int {
|
|
logrus.SetLevel(logrus.DebugLevel)
|
|
logrus.SetOutput(ioutil.Discard)
|
|
|
|
return m.Run()
|
|
}
|
|
os.Exit(run())
|
|
}
|