Skip to content

Commit f8d16a8

Browse files
[MM-956]: removed unused code
1 parent a760c64 commit f8d16a8

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

server/plugin/webhook_test.go

+13-13
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,19 @@ func TestPostPushEvent(t *testing.T) {
5353
mockAPI.On("LogWarn", "Error webhook post", "post", mock.Anything, "error", "error creating post")
5454
},
5555
},
56-
// {
57-
// name: "Successful handle post push event",
58-
// pushEvent: GetMockPushEvent(),
59-
// setup: func() {
60-
// mockKvStore.EXPECT().Get(SubscriptionsKey, gomock.Any()).DoAndReturn(func(key string, value interface{}) error {
61-
// if v, ok := value.(**Subscriptions); ok {
62-
// *v = GetMockSubscriptions()
63-
// }
64-
// return nil
65-
// }).Times(1)
66-
// mockAPI.On("CreatePost", mock.Anything).Return(&model.Post{}, nil).Times(1)
67-
// },
68-
// },
56+
{
57+
name: "Successful handle post push event",
58+
pushEvent: GetMockPushEvent(),
59+
setup: func() {
60+
mockKvStore.EXPECT().Get(SubscriptionsKey, gomock.Any()).DoAndReturn(func(key string, value interface{}) error {
61+
if v, ok := value.(**Subscriptions); ok {
62+
*v = GetMockSubscriptions()
63+
}
64+
return nil
65+
}).Times(1)
66+
mockAPI.On("CreatePost", mock.Anything).Return(&model.Post{}, nil).Times(1)
67+
},
68+
},
6969
}
7070
for _, tc := range tests {
7171
t.Run(tc.name, func(t *testing.T) {

0 commit comments

Comments
 (0)