mirror of
https://github.com/simon987/task_tracker.git
synced 2025-12-13 14:59:03 +00:00
Logging config
This commit is contained in:
@@ -5,7 +5,6 @@ import (
|
||||
"crypto"
|
||||
"crypto/hmac"
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"src/task_tracker/api"
|
||||
"src/task_tracker/config"
|
||||
@@ -16,8 +15,6 @@ func TestWebHookNoSignature(t *testing.T) {
|
||||
|
||||
r := Post("/git/receivehook", api.GitPayload{})
|
||||
|
||||
fmt.Println(r.StatusCode)
|
||||
|
||||
if r.StatusCode != 403 {
|
||||
t.Error()
|
||||
}
|
||||
@@ -31,8 +28,6 @@ func TestWebHookInvalidSignature(t *testing.T) {
|
||||
client := http.Client{}
|
||||
r, _ := client.Do(req)
|
||||
|
||||
fmt.Println(r.StatusCode)
|
||||
|
||||
if r.StatusCode != 403 {
|
||||
t.Error()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user