From 32f0575df3e32de29ef5ef352168df1f5e512680 Mon Sep 17 00:00:00 2001 From: Abdul Halim Date: Thu, 12 Jan 2023 18:48:33 +0000 Subject: [PATCH] update utils and netconf unit tests Signed-off-by: Abdul Halim --- pkg/netconf/netconf_test.go | 2 +- pkg/utils/utils_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/netconf/netconf_test.go b/pkg/netconf/netconf_test.go index bf469b5..fe1084f 100644 --- a/pkg/netconf/netconf_test.go +++ b/pkg/netconf/netconf_test.go @@ -1796,7 +1796,7 @@ func fakeSendSetupHostInterfaceErr(request *proto.SetupHostInterfaceRequest) err } func fakeGrpcDial(target string, opts ...grpc.DialOption) (*grpc.ClientConn, error) { - return grpc.DialContext(context.TODO(), "", grpc.WithTransportCredentials(insecure.NewCredentials())) + return grpc.DialContext(context.TODO(), "foo.bar:54321", grpc.WithTransportCredentials(insecure.NewCredentials())) } func fakeGrpcDialErr(target string, opts ...grpc.DialOption) (*grpc.ClientConn, error) { diff --git a/pkg/utils/utils_test.go b/pkg/utils/utils_test.go index 14296d1..8125a1b 100644 --- a/pkg/utils/utils_test.go +++ b/pkg/utils/utils_test.go @@ -1056,7 +1056,7 @@ func (fs *FakeFilesystem) Use(tmpDir string) (string, func(), error) { } func fakeGrpcDial(target string, opts ...grpc.DialOption) (*grpc.ClientConn, error) { - return grpc.DialContext(context.TODO(), "", grpc.WithTransportCredentials(insecure.NewCredentials())) + return grpc.DialContext(context.TODO(), "foo.bar:54321", grpc.WithTransportCredentials(insecure.NewCredentials())) } func fakeGrpcDialErr(target string, opts ...grpc.DialOption) (*grpc.ClientConn, error) {