Skip to content

Commit

Permalink
test: add delay
Browse files Browse the repository at this point in the history
  • Loading branch information
cugu committed Jul 20, 2024
1 parent 0ff18d5 commit b86e6c1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions reaction/action/webhook/webhook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/json"
"net/http"
"testing"
"time"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand All @@ -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
Expand Down

0 comments on commit b86e6c1

Please sign in to comment.