From de1e3f2190dab1ccc88bb5929229f0a03546b729 Mon Sep 17 00:00:00 2001 From: Kharec Date: Fri, 26 Dec 2025 18:49:32 +0100 Subject: [PATCH] fix: reject 5xx errors in TestQueryParameters to catch regressions --- internal/server/router_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/server/router_test.go b/internal/server/router_test.go index f74358d..da169fb 100644 --- a/internal/server/router_test.go +++ b/internal/server/router_test.go @@ -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) + } } }) }