Skip to content

Commit

Permalink
test(issue-55): ensure routing succeeds
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaba505 committed Jan 14, 2025
1 parent dc0bfb5 commit 14e7bef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rest/mux/mux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func TestRouter_ServeHTTP(t *testing.T) {
})),
)

r.Route(http.MethodGet, "/", noopDefinition{
MustRoute(r, http.MethodGet, "/", noopDefinition{
Handler: http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
}),
Expand Down Expand Up @@ -109,7 +109,7 @@ func TestRouter_ServeHTTP(t *testing.T) {
})),
)

r.Route(http.MethodGet, "/", noopDefinition{
MustRoute(r, http.MethodGet, "/", noopDefinition{
Handler: http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
}),
Expand Down

0 comments on commit 14e7bef

Please sign in to comment.