Skip to content

Commit a86d565

Browse files
author
maknahar
committed
Made some changes based on review comments
1 parent 235709b commit a86d565

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

mux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
)
1515

1616
var (
17-
ErrMethodMismatch = errors.New("Method is Not Allowed")
17+
ErrMethodMismatch = errors.New("method is not allowed")
1818
)
1919

2020
// NewRouter returns a new router instance.

mux_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1872,7 +1872,7 @@ func newRequest(method, url string) *http.Request {
18721872
return req
18731873
}
18741874

1875-
func TestNoMatchMethodErrors(t *testing.T) {
1875+
func TestNoMatchMethodErrorHandler(t *testing.T) {
18761876
func1 := func(w http.ResponseWriter, r *http.Request) {}
18771877

18781878
r := NewRouter()

old_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func TestRouteMatchers(t *testing.T) {
121121
var routeMatch RouteMatch
122122
matched := router.Match(request, &routeMatch)
123123
if matched != shouldMatch {
124-
t.Errorf("Match Expectation: %v\nGot: %v\nRequest: %v %v", shouldMatch, matched, request.Method, url)
124+
t.Errorf("Expected: %v\nGot: %v\nRequest: %v %v", shouldMatch, matched, request.Method, url)
125125
}
126126

127127
if matched {

0 commit comments

Comments
 (0)