From 443e2557089d9cdd77c84cb5e0e2d67d1febf581 Mon Sep 17 00:00:00 2001 From: binkkatal Date: Sat, 14 Jul 2018 11:38:41 +0530 Subject: [PATCH] Fix failing TestCommitCommentEvent Due to a slight change in the payload , the ssh for payload changed. This was the reason for failing test case --- github/github_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/github/github_test.go b/github/github_test.go index fdee1ff..f993e69 100644 --- a/github/github_test.go +++ b/github/github_test.go @@ -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")