From b86e6c1faaa5b4ba97bd14b093fa49cbe810b93f Mon Sep 17 00:00:00 2001 From: Jonas Plum Date: Sat, 20 Jul 2024 08:48:03 +0200 Subject: [PATCH] test: add delay --- reaction/action/webhook/webhook_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reaction/action/webhook/webhook_test.go b/reaction/action/webhook/webhook_test.go index e831f3fd..eea1087b 100644 --- a/reaction/action/webhook/webhook_test.go +++ b/reaction/action/webhook/webhook_test.go @@ -5,6 +5,7 @@ import ( "encoding/json" "net/http" "testing" + "time" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" @@ -19,6 +20,8 @@ func TestWebhook_Run(t *testing.T) { go http.ListenAndServe("127.0.0.1:12347", server) //nolint:gosec,errcheck + time.Sleep(1 * time.Second) + type fields struct { Headers map[string]string URL string