prysm-pulse/sharding/utils/service_test.go
Preston Van Loon 68eba02cc2 Remove most of the remaining geth code and set up bazel (#235)
* Remove most of the remaining geth code and set up bazel for this

* chmod +x

* Add flake check

* better flake detection


Former-commit-id: 5c332ecbf2923943f646f1fe40befa95be883329 [formerly 99590fc354514584700e5ce8d7d30a8a7d541f29]
Former-commit-id: e5f919b553fe698e98090965d34eb721990b5693
2018-07-07 13:23:19 -04:00

23 lines
449 B
Go

package utils
import (
"errors"
"testing"
"github.com/ethereum/go-ethereum/log"
"github.com/prysmaticlabs/geth-sharding/sharding/internal"
)
func TestHandleServiceErrors(t *testing.T) {
h := internal.NewLogHandler(t)
log.Root().SetHandler(h)
done := make(chan struct{})
errChan := make(chan error)
go HandleServiceErrors(done, errChan)
errChan <- errors.New("something wrong")
done <- struct{}{}
h.VerifyLogMsg("something wrong")
}