Skip to content

Commit

Permalink
testing: fix TestWebhooks
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjan committed Aug 27, 2024
1 parent 24d08e5 commit b0cc175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alerts/alerts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b0cc175

Please sign in to comment.