Skip to content

Commit 634497b

Browse files
authored
test: Split import paths for generated message and service code (#7891)
1 parent 78aa51b commit 634497b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/clientconn_state_transition_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ import (
3939
"google.golang.org/grpc/internal/stubserver"
4040
"google.golang.org/grpc/internal/testutils"
4141
testgrpc "google.golang.org/grpc/interop/grpc_testing"
42+
testpb "google.golang.org/grpc/interop/grpc_testing"
4243
"google.golang.org/grpc/resolver"
4344
"google.golang.org/grpc/resolver/manual"
4445
)
@@ -678,7 +679,7 @@ func (s) TestChannelStateTransitionWithRPC(t *testing.T) {
678679

679680
// Make an RPC call to transition the channel to CONNECTING.
680681
go func() {
681-
_, err := testgrpc.NewTestServiceClient(cc).EmptyCall(ctx, &testgrpc.Empty{})
682+
_, err := testgrpc.NewTestServiceClient(cc).EmptyCall(ctx, &testpb.Empty{})
682683
if err == nil {
683684
t.Errorf("Expected RPC to fail, but it succeeded")
684685
}

0 commit comments

Comments
 (0)