Skip to content

Commit

Permalink
Fix bad import alias.
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Hallgren <thomas@datawire.io>
  • Loading branch information
thallgren committed Jun 29, 2023
1 parent b1a2356 commit 066275e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cmd/traffic/cmd/manager/mutator/watcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"sigs.k8s.io/yaml"

"github.com/datawire/k8sapi/pkg/k8sapi"
mock_kubernetes2 "github.com/telepresenceio/telepresence/v2/cmd/traffic/cmd/manager/mutator/mocks"
mockKubernetes "github.com/telepresenceio/telepresence/v2/cmd/traffic/cmd/manager/mutator/mocks"
"github.com/telepresenceio/telepresence/v2/pkg/agentconfig"
)

Expand All @@ -27,19 +27,19 @@ type suiteConfigWatcher struct {

ctrl *gomock.Controller

kubeApiMock *mock_kubernetes2.MockInterface
coreV1ApiMock *mock_kubernetes2.MockCoreV1Interface
configMapApiMock *mock_kubernetes2.MockConfigMapInterface
kubeApiMock *mockKubernetes.MockInterface
coreV1ApiMock *mockKubernetes.MockCoreV1Interface
configMapApiMock *mockKubernetes.MockConfigMapInterface

configWatcher *configWatcher
}

func (s *suiteConfigWatcher) SetupTest() {
s.ctrl = gomock.NewController(s.T())

s.kubeApiMock = mock_kubernetes2.NewMockInterface(s.ctrl)
s.coreV1ApiMock = mock_kubernetes2.NewMockCoreV1Interface(s.ctrl)
s.configMapApiMock = mock_kubernetes2.NewMockConfigMapInterface(s.ctrl)
s.kubeApiMock = mockKubernetes.NewMockInterface(s.ctrl)
s.coreV1ApiMock = mockKubernetes.NewMockCoreV1Interface(s.ctrl)
s.configMapApiMock = mockKubernetes.NewMockConfigMapInterface(s.ctrl)

s.kubeApiMock.EXPECT().CoreV1().Return(s.coreV1ApiMock).AnyTimes()
s.coreV1ApiMock.EXPECT().ConfigMaps(gomock.Any()).Return(s.configMapApiMock).AnyTimes()
Expand Down

0 comments on commit 066275e

Please sign in to comment.