From 9c82b4b6c84b1796fe0ce3cbf28f9040e63fce79 Mon Sep 17 00:00:00 2001 From: Satnam Singh Date: Thu, 9 Jul 2015 10:08:18 -0700 Subject: [PATCH] Fix error with variable re-declaration in ES logging test --- test/e2e/es_cluster_logging.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/es_cluster_logging.go b/test/e2e/es_cluster_logging.go index a2d1417f945..720549df1d5 100644 --- a/test/e2e/es_cluster_logging.go +++ b/test/e2e/es_cluster_logging.go @@ -97,9 +97,10 @@ func ClusterLevelLoggingWithElasticsearch(f *Framework) { var statusCode float64 var esResponse map[string]interface{} err = nil + var body []byte for start := time.Now(); time.Since(start) < graceTime; time.Sleep(5 * time.Second) { // Query against the root URL for Elasticsearch. - body, err := f.Client.Get(). + body, err = f.Client.Get(). Namespace(api.NamespaceSystem). Prefix("proxy"). Resource("services"). @@ -143,7 +144,6 @@ func ClusterLevelLoggingWithElasticsearch(f *Framework) { // Now assume we really are talking to an Elasticsearch instance. // Check the cluster health. By("Checking health of Elasticsearch service.") - var body []byte for start := time.Now(); time.Since(start) < graceTime; time.Sleep(5 * time.Second) { body, err = f.Client.Get(). Namespace(api.NamespaceSystem).