Commit 3c72506f authored by Tim St. Clair's avatar Tim St. Clair

Fixed test & error code

parent 368447ff
......@@ -533,7 +533,7 @@ func TestAuthFilters(t *testing.T) {
// This is a sanity check that the Handle->HandleWithFilter() delegation is working
// Ideally, these would move to registered web services and this list would get shorter
expectedPaths := []string{"/healthz", "/stats/", "/metrics"}
expectedPaths := []string{"/healthz", "/metrics"}
paths := sets.NewString(fw.serverUnderTest.restfulCont.RegisteredHandlePaths()...)
for _, expectedPath := range expectedPaths {
if !paths.Has(expectedPath) {
......
......@@ -215,6 +215,6 @@ func handleError(response *restful.Response, err error) {
default:
msg := fmt.Sprintf("Internal Error: %v", err)
glog.Infof("HTTP InternalServerError: %s", msg)
response.WriteErrorString(http.StatusNotFound, msg)
response.WriteErrorString(http.StatusInternalServerError, msg)
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment