mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 23:18:15 -05:00
Remove duplicate imports (#14772)
This commit is contained in:
@@ -12,7 +12,6 @@ import (
|
||||
"github.com/golang/protobuf/ptypes/empty"
|
||||
"github.com/prysmaticlabs/prysm/v5/api"
|
||||
"github.com/prysmaticlabs/prysm/v5/io/logs/mock"
|
||||
eth "github.com/prysmaticlabs/prysm/v5/proto/prysm/v1alpha1"
|
||||
pb "github.com/prysmaticlabs/prysm/v5/proto/prysm/v1alpha1"
|
||||
"github.com/prysmaticlabs/prysm/v5/testing/require"
|
||||
validatormock "github.com/prysmaticlabs/prysm/v5/testing/validator-mock"
|
||||
@@ -26,11 +25,11 @@ type MockBeaconNodeHealthClient struct {
|
||||
err error
|
||||
}
|
||||
|
||||
func (m *MockBeaconNodeHealthClient) StreamBeaconLogs(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (eth.Health_StreamBeaconLogsClient, error) {
|
||||
func (m *MockBeaconNodeHealthClient) StreamBeaconLogs(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (pb.Health_StreamBeaconLogsClient, error) {
|
||||
return m, m.err
|
||||
}
|
||||
|
||||
func (m *MockBeaconNodeHealthClient) Recv() (*eth.LogsResponse, error) {
|
||||
func (m *MockBeaconNodeHealthClient) Recv() (*pb.LogsResponse, error) {
|
||||
if len(m.logs) == 0 {
|
||||
return nil, io.EOF
|
||||
}
|
||||
@@ -173,7 +172,7 @@ func TestServer_GetVersion(t *testing.T) {
|
||||
ctx: ctx,
|
||||
nodeClient: mockNodeClient,
|
||||
}
|
||||
mockNodeClient.EXPECT().Version(gomock.Any(), gomock.Any()).Return(ð.Version{
|
||||
mockNodeClient.EXPECT().Version(gomock.Any(), gomock.Any()).Return(&pb.Version{
|
||||
Version: "4.10.1",
|
||||
Metadata: "beacon node",
|
||||
}, nil)
|
||||
|
||||
Reference in New Issue
Block a user