fix: reject 5xx errors in TestQueryParameters to catch regressions
This commit is contained in:
1 parent
310875368d
commit
de1e3f2190
1 file changed
+3
@@ -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)
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user