Skip to content

Commit

Permalink
refactor: changed req method for test TestMethodNotAllowed_diffMethod…
Browse files Browse the repository at this point in the history
…s_diffReqMethod
  • Loading branch information
rodionovv committed Nov 4, 2024
1 parent b0ff8ce commit f0fb0e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3014,7 +3014,7 @@ func TestMethodNotAllowed_diffMethods_diffReqMethod(t *testing.T) {
router.Path("/something").Methods(http.MethodGet).Handler(http.HandlerFunc(handler))

w := NewRecorder()
req := newRequest(http.MethodPost, "/thing")
req := newRequest(http.MethodDelete, "/thing")

router.ServeHTTP(w, req)

Expand Down

0 comments on commit f0fb0e8

Please sign in to comment.