Skip to content

Commit 443e255

Browse files
committed
Fix failing TestCommitCommentEvent
Due to a slight change in the payload , the ssh for payload changed. This was the reason for failing test case
1 parent eb56c26 commit 443e255

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

github/github_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ func TestBadSignatureMatch(t *testing.T) {
181181
}
182182

183183
func TestCommitCommentEvent(t *testing.T) {
184-
t.Skip()
185184
payload := `{
186185
"action": "created",
187186
"comment": {
@@ -321,7 +320,8 @@ func TestCommitCommentEvent(t *testing.T) {
321320
"type": "User",
322321
"site_admin": false
323322
}
324-
}`
323+
}
324+
`
325325

326326
req, err := http.NewRequest("POST", "http://127.0.0.1:3010/webhooks", bytes.NewBuffer([]byte(payload)))
327327
req.Header.Set("Content-Type", "application/json")

0 commit comments

Comments
 (0)