mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-11 04:00:05 +00:00
68eba02cc2
* 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
23 lines
449 B
Go
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")
|
|
}
|