We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f61ed8 commit 712e04eCopy full SHA for 712e04e
internal/cli/atlas/networking/peering/watch_test.go
@@ -31,10 +31,6 @@ func TestWatchBuilder(t *testing.T) {
31
}
32
33
func TestWatchOpts_Run(t *testing.T) {
34
- ctrl := gomock.NewController(t)
35
- mockStore := mocks.NewMockPeeringConnectionDescriber(ctrl)
36
- defer ctrl.Finish()
37
-
38
tests := []struct {
39
name string
40
expected *mongodbatlas.Peer
@@ -56,6 +52,10 @@ func TestWatchOpts_Run(t *testing.T) {
56
52
expected := tt.expected
57
53
t.Run(tt.name, func(t *testing.T) {
58
54
t.Parallel()
55
+
+ ctrl := gomock.NewController(t)
+ mockStore := mocks.NewMockPeeringConnectionDescriber(ctrl)
+ defer ctrl.Finish()
59
describeOpts := &WatchOpts{
60
id: "test",
61
store: mockStore,
0 commit comments