test: Split import paths for generated message and service code (#7891)

This commit is contained in:
Arjan Singh Bal 2024-12-03 12:30:29 +05:30 committed by GitHub
parent 78aa51be7e
commit 634497b758
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -39,6 +39,7 @@ import (
"google.golang.org/grpc/internal/stubserver"
"google.golang.org/grpc/internal/testutils"
testgrpc "google.golang.org/grpc/interop/grpc_testing"
testpb "google.golang.org/grpc/interop/grpc_testing"
"google.golang.org/grpc/resolver"
"google.golang.org/grpc/resolver/manual"
)
@ -678,7 +679,7 @@ func (s) TestChannelStateTransitionWithRPC(t *testing.T) {
// Make an RPC call to transition the channel to CONNECTING.
go func() {
_, err := testgrpc.NewTestServiceClient(cc).EmptyCall(ctx, &testgrpc.Empty{})
_, err := testgrpc.NewTestServiceClient(cc).EmptyCall(ctx, &testpb.Empty{})
if err == nil {
t.Errorf("Expected RPC to fail, but it succeeded")
}