diff options
Diffstat (limited to 'plugin/kubernetes/ns_test.go')
-rw-r--r-- | plugin/kubernetes/ns_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugin/kubernetes/ns_test.go b/plugin/kubernetes/ns_test.go index 6370675cd..c952d66f0 100644 --- a/plugin/kubernetes/ns_test.go +++ b/plugin/kubernetes/ns_test.go @@ -2,6 +2,7 @@ package kubernetes import ( "context" + "fmt" "net" "testing" @@ -91,8 +92,8 @@ func (APIConnTest) EpIndexReverse(ip string) []*object.Endpoints { func (APIConnTest) GetNodeByName(ctx context.Context, name string) (*api.Node, error) { return &api.Node{}, nil } -func (APIConnTest) GetNamespaceByName(name string) (*api.Namespace, error) { - return &api.Namespace{}, nil +func (APIConnTest) GetNamespaceByName(name string) (*object.Namespace, error) { + return nil, fmt.Errorf("namespace not found") } func TestNsAddrs(t *testing.T) { |