diff --git a/rest/router/patrouter_test.go b/rest/router/patrouter_test.go index 33659ec6..56748eac 100644 --- a/rest/router/patrouter_test.go +++ b/rest/router/patrouter_test.go @@ -47,7 +47,7 @@ func TestPatRouterHandleErrors(t *testing.T) { t.Run(test.method, func(t *testing.T) { router := NewRouter() err := router.Handle(test.method, test.path, nil) - assert.Error(t, ErrInvalidMethod, err) + assert.Equal(t, test.err, err) }) } }