mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-09 19:21:19 +00:00
25 lines
517 B
Go
25 lines
517 B
Go
package rpcclient
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
"github.com/prysmaticlabs/prysm/shared/testutil"
|
|
logTest "github.com/sirupsen/logrus/hooks/test"
|
|
)
|
|
|
|
func TestLifecycle(t *testing.T) {
|
|
hook := logTest.NewGlobal()
|
|
rpcClientService := NewRPCClient(
|
|
context.Background(),
|
|
&Config{
|
|
Endpoint: "merkle tries",
|
|
CertFlag: "alice.crt",
|
|
},
|
|
)
|
|
rpcClientService.Start()
|
|
testutil.AssertLogsContain(t, hook, "Starting service")
|
|
rpcClientService.Stop()
|
|
testutil.AssertLogsContain(t, hook, "Stopping service")
|
|
}
|