diff options
author | Martin Polden <mpolden@mpolden.no> | 2020-08-15 22:09:45 +0200 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2020-08-15 22:09:45 +0200 |
commit | cfebd00d81e06e6130abfff93824448d7aad5f4b (patch) | |
tree | 29f2ec45268cfb2218226552df1a091c3003fb31 | |
parent | 8c0f868b8c56261d20e93232f1684d0105328e1a (diff) |
all: Make tests pass on 1.15
-rw-r--r-- | config_test.go | 2 | ||||
-rw-r--r-- | http/http_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/config_test.go b/config_test.go index 32738d8..1675e9a 100644 --- a/config_test.go +++ b/config_test.go @@ -179,7 +179,7 @@ cache_persist = true {conf0, "cache size must be >= 0"}, {conf1, "invalid hijack mode: foo"}, - {conf2, "invalid refresh interval: time: invalid duration foo"}, + {conf2, "invalid refresh interval: time: invalid duration \"foo\""}, {conf3, "refresh interval must be >= 0"}, {conf4, "invalid resolver: address foo: missing port in address"}, {conf5, "invalid resolver protocol: foo"}, 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}, } |