fix: reject 5xx errors in TestQueryParameters to catch regressions

This commit is contained in:
2025-12-26 18:49:32 +01:00
parent 310875368d
commit de1e3f2190

View File

@@ -824,6 +824,9 @@ func TestQueryParameters(t *testing.T) {
if recorder.Code == http.StatusNotFound {
t.Errorf("Route %s %s should exist with query parameters, got 404", tc.method, fullPath)
}
if recorder.Code >= http.StatusInternalServerError {
t.Errorf("Route %s %s should not return server error (5xx), got %d", tc.method, fullPath, recorder.Code)
}
}
})
}