diff options
Diffstat (limited to 'http/http_test.go')
-rw-r--r-- | http/http_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/http/http_test.go b/http/http_test.go index 2909271..a07a7c4 100644 --- a/http/http_test.go +++ b/http/http_test.go @@ -99,10 +99,10 @@ func TestRequests(t *testing.T) { }{ {http.MethodGet, "/not-found", `{"status":404,"message":"Resource not found"}`, 404}, {http.MethodGet, "/log/v1/", lr1, 200}, - {http.MethodGet, "/log/v1/?n=foo", lr1, 200}, + {http.MethodGet, "/log/v1/?n=foo", `{"status":400,"message":"invalid value for parameter n: foo"}`, 400}, {http.MethodGet, "/log/v1/?n=1", lr2, 200}, {http.MethodGet, "/cache/v1/", cr1, 200}, - {http.MethodGet, "/cache/v1/?n=foo", cr1, 200}, + {http.MethodGet, "/cache/v1/?n=foo", `{"status":400,"message":"invalid value for parameter n: foo"}`, 400}, {http.MethodGet, "/cache/v1/?n=1", cr2, 200}, {http.MethodGet, "/metric/v1/", mr1, 200}, {http.MethodDelete, "/cache/v1/", `{"message":"Cleared cache."}`, 200}, |