Skip to content

Commit

Permalink
minor test bug
Browse files Browse the repository at this point in the history
  • Loading branch information
delaneyj committed Jun 21, 2023
1 parent 42a8800 commit 81ef5a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion group_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package bunrouter

import (
"fmt"
"net/http"
"net/http/httptest"
"testing"
Expand Down Expand Up @@ -123,8 +124,9 @@ func testGroupMethods(t *testing.T) {
testMethod := func(method, expect string) {
result = ""

url := fmt.Sprintf("%s/%s", fullUserPath, method)
w := httptest.NewRecorder()
r, _ := http.NewRequest(method, fullUserPath+method, nil)
r, _ := http.NewRequest(method, url, nil)
router.ServeHTTP(w, r)

if expect == "" {
Expand Down

0 comments on commit 81ef5a2

Please sign in to comment.