prysm-pulse/slasher/beaconclient/service_test.go
Victor Farazdagi f361450e8d
Update TestMain() to use os.Exit() (#7814)
* update TestMain

* fix sync/initial-sync test

* restore code in rate limiter

* fix rate_limiter tests
2020-11-13 18:28:14 -08:00

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())
}