Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Shkuro <github@ysh.us>
  • Loading branch information
yurishkuro committed Feb 13, 2022
1 parent 90035eb commit 1fef34a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/grpctest/reflection.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ type ReflectionServiceValidator struct {
}

// Execute performs validation.
func (params ReflectionServiceValidator) Execute(t *testing.T) {
func (v ReflectionServiceValidator) Execute(t *testing.T) {
conn, err := grpc.Dial(
params.HostPort,
v.HostPort,
grpc.WithTransportCredentials(insecure.NewCredentials()))
require.NoError(t, err)
defer conn.Close()
Expand All @@ -56,7 +56,7 @@ func (params ReflectionServiceValidator) Execute(t *testing.T) {
m.MessageResponse)

resp := m.MessageResponse.(*grpc_reflection_v1alpha.ServerReflectionResponse_ListServicesResponse)
for _, svc := range params.ExpectedServices {
for _, svc := range v.ExpectedServices {
var found string
for _, s := range resp.ListServicesResponse.Service {
if svc == s.Name {
Expand Down

0 comments on commit 1fef34a

Please # to comment.