Fix failing test
This commit is contained in:
		| @@ -2,7 +2,6 @@ | |||||||
| package path | package path | ||||||
|  |  | ||||||
| import ( | import ( | ||||||
| 	"errors" |  | ||||||
| 	"net/http" | 	"net/http" | ||||||
| 	"strings" | 	"strings" | ||||||
|  |  | ||||||
| @@ -13,7 +12,7 @@ type Resolver struct{} | |||||||
|  |  | ||||||
| func (r *Resolver) Resolve(req *http.Request) (*resolver.Endpoint, error) { | func (r *Resolver) Resolve(req *http.Request) (*resolver.Endpoint, error) { | ||||||
| 	if req.URL.Path == "/" { | 	if req.URL.Path == "/" { | ||||||
| 		return nil, errors.New("unknown name") | 		return nil, resolver.ErrNotFound | ||||||
| 	} | 	} | ||||||
| 	parts := strings.Split(req.URL.Path[1:], "/") | 	parts := strings.Split(req.URL.Path[1:], "/") | ||||||
| 	return &resolver.Endpoint{ | 	return &resolver.Endpoint{ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user