Skip to content

Commit

Permalink
wait
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe committed Oct 31, 2023
1 parent 6799ba0 commit 561bd76
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions impl/pkg/server/server_pkarr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"net/http"
"net/http/httptest"
"testing"
"time"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down Expand Up @@ -54,6 +55,9 @@ func TestPKARRRouter(t *testing.T) {
req = httptest.NewRequest(http.MethodGet, fmt.Sprintf("%s/%s", testServerURL, suffix), nil)
c = newRequestContextWithParams(w, req, map[string]string{IDParam: suffix})

// wait for the record to be published
time.Sleep(10 * time.Second)

pkarrRouter.GetRecord(c)
assert.True(t, is2xxResponse(w.Code))

Expand Down

0 comments on commit 561bd76

Please sign in to comment.