From 9fe7fb95c646dfa95b14a5aef44ca4588c9ea8c0 Mon Sep 17 00:00:00 2001 From: xieyanker Date: Mon, 26 Aug 2019 18:31:24 +0800 Subject: return standardized text for ready and health endpoint (#3195) --- test/reload_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/reload_test.go b/test/reload_test.go index e026a97ce..f17a85b05 100644 --- a/test/reload_test.go +++ b/test/reload_test.go @@ -110,7 +110,7 @@ func TestReloadMetricsHealth(t *testing.T) { } ok, _ := ioutil.ReadAll(resp.Body) resp.Body.Close() - if string(ok) != "OK" { + if string(ok) != http.StatusText(http.StatusOK) { t.Errorf("Failed to receive OK, got %s", ok) } -- cgit v1.2.3