mirror of https://github.com/grpc/grpc-go.git
admin/test: split channelz imports (#6058)
This commit is contained in:
parent
1093d3ac0a
commit
681b13383c
|
|
@ -36,6 +36,7 @@ import (
|
|||
|
||||
v3statusgrpc "github.com/envoyproxy/go-control-plane/envoy/service/status/v3"
|
||||
v3statuspb "github.com/envoyproxy/go-control-plane/envoy/service/status/v3"
|
||||
channelzgrpc "google.golang.org/grpc/channelz/grpc_channelz_v1"
|
||||
channelzpb "google.golang.org/grpc/channelz/grpc_channelz_v1"
|
||||
)
|
||||
|
||||
|
|
@ -98,7 +99,7 @@ func RunRegisterTests(t *testing.T, ec ExpectedStatusCodes) {
|
|||
|
||||
// RunChannelz makes a channelz RPC.
|
||||
func RunChannelz(conn *grpc.ClientConn) error {
|
||||
c := channelzpb.NewChannelzClient(conn)
|
||||
c := channelzgrpc.NewChannelzClient(conn)
|
||||
ctx, cancel := context.WithTimeout(context.Background(), defaultTestTimeout)
|
||||
defer cancel()
|
||||
_, err := c.GetTopChannels(ctx, &channelzpb.GetTopChannelsRequest{}, grpc.WaitForReady(true))
|
||||
|
|
|
|||
Loading…
Reference in New Issue