diff --git a/entrypoint/entrypoint_test.go b/entrypoint/entrypoint_test.go index 1ccdcc8..5f61a13 100644 --- a/entrypoint/entrypoint_test.go +++ b/entrypoint/entrypoint_test.go @@ -36,7 +36,7 @@ func (d dummyResolver) GetName() (name string) { func init() { testClient = mocks.NewClient() - testEntrypoint = mocks.NewEntrypoint(testClient, testNamespace) + testEntrypoint = mocks.NewEntrypointInNamespace(testNamespace) } diff --git a/mocks/entrypoint.go b/mocks/entrypoint.go index 7fba390..49db581 100644 --- a/mocks/entrypoint.go +++ b/mocks/entrypoint.go @@ -20,9 +20,13 @@ func (m MockEntrypoint) GetNamespace() (namespace string) { return m.namespace } -func NewEntrypoint(client cli.ClientInterface, namespace string) MockEntrypoint { +func NewEntrypointInNamespace(namespace string) MockEntrypoint { return MockEntrypoint{ client: client, namespace: namespace, } } + +func NewEntrypoint() MockEntrypoint { + return NewEntrypointInNamespace("test") +}