From cfebd00d81e06e6130abfff93824448d7aad5f4b Mon Sep 17 00:00:00 2001 From: Martin Polden Date: Sat, 15 Aug 2020 22:09:45 +0200 Subject: all: Make tests pass on 1.15 --- http/http_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'http') diff --git a/http/http_test.go b/http/http_test.go index ac95697..0ca56b2 100644 --- a/http/http_test.go +++ b/http/http_test.go @@ -120,7 +120,7 @@ zdns_requests_total 2 {http.MethodGet, "/metric/v1/?resolution=1m", mr1, 200, jsonMediaType}, {http.MethodGet, "/metric/v1/?resolution=0", mr1, 200, jsonMediaType}, {http.MethodGet, "/metric/v1/?format=foo", `{"status":400,"message":"invalid metric format: foo"}`, 400, jsonMediaType}, - {http.MethodGet, "/metric/v1/?resolution=foo", `{"status":400,"message":"time: invalid duration foo"}`, 400, jsonMediaType}, + {http.MethodGet, "/metric/v1/?resolution=foo", `{"status":400,"message":"time: invalid duration \"foo\""}`, 400, jsonMediaType}, {http.MethodDelete, "/cache/v1/", `{"message":"Cleared cache."}`, 200, jsonMediaType}, } -- cgit v1.2.3