Skip to content

Commit 264771f

Browse files
committed
sq
1 parent fb8e520 commit 264771f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/test/chi/oapi_validate_test.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
package chi
22

33
import (
4+
"bytes"
45
"context"
56
_ "embed"
7+
"encoding/json"
68
"errors"
79
"io"
810
"net/http"
@@ -11,7 +13,6 @@ import (
1113
"testing"
1214

1315
middleware "github.com/oapi-codegen/nethttp-middleware"
14-
"github.com/oapi-codegen/testutil"
1516

1617
"github.com/getkin/kin-openapi/openapi3"
1718
"github.com/getkin/kin-openapi/openapi3filter"
@@ -50,7 +51,7 @@ func doPost(t *testing.T, mux http.Handler, rawURL string, jsonBody interface{})
5051
data, err := json.Marshal(jsonBody)
5152
require.NoError(t, err)
5253

53-
req, err := http.NewRequest(http.MethodGet, u.String(), bytes.NewReader(data))
54+
req, err := http.NewRequest(http.MethodPost, u.String(), bytes.NewReader(data))
5455
require.NoError(t, err)
5556

5657
req.Header.Set("content-type", "application/json")

0 commit comments

Comments
 (0)