Fix failing TestCommitCommentEvent

Due to a slight change in the payload , the ssh for payload changed.
This was the reason for failing test case
This commit is contained in:
binkkatal
2018-07-14 11:38:41 +05:30
parent eb56c26534
commit 443e255708
+2 -2
View File
@@ -181,7 +181,6 @@ func TestBadSignatureMatch(t *testing.T) {
}
func TestCommitCommentEvent(t *testing.T) {
t.Skip()
payload := `{
"action": "created",
"comment": {
@@ -321,7 +320,8 @@ func TestCommitCommentEvent(t *testing.T) {
"type": "User",
"site_admin": false
}
}`
}
`
req, err := http.NewRequest("POST", "http://127.0.0.1:3010/webhooks", bytes.NewBuffer([]byte(payload)))
req.Header.Set("Content-Type", "application/json")