Remove duplicate imports (#14772)

This commit is contained in:
Radosław Kapka
2025-01-03 12:42:14 +01:00
committed by GitHub
parent afeb05c9a1
commit 8cff9356f1
8 changed files with 25 additions and 33 deletions

View File

@@ -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(&eth.Version{
mockNodeClient.EXPECT().Version(gomock.Any(), gomock.Any()).Return(&pb.Version{
Version: "4.10.1",
Metadata: "beacon node",
}, nil)