From b0cc175fd0c21342c4b210b2eb994198e1f50c44 Mon Sep 17 00:00:00 2001 From: PJ Date: Tue, 27 Aug 2024 11:24:10 +0200 Subject: [PATCH] testing: fix TestWebhooks --- alerts/alerts_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alerts/alerts_test.go b/alerts/alerts_test.go index af44030a6..99b698f7e 100644 --- a/alerts/alerts_test.go +++ b/alerts/alerts_test.go @@ -57,7 +57,7 @@ func TestWebhooks(t *testing.T) { mux := http.NewServeMux() var events []webhooks.Event var mu sync.Mutex - mux.HandleFunc("/events", func(w http.ResponseWriter, r *http.Request) { + mux.HandleFunc("/event", func(w http.ResponseWriter, r *http.Request) { var event webhooks.Event if err := json.NewDecoder(r.Body).Decode(&event); err != nil { t.Fatal(err)