From c90b310032b839067e3561d678564fd1a4a2bb40 Mon Sep 17 00:00:00 2001 From: atyron Date: Thu, 29 Sep 2016 18:57:24 +0300 Subject: [PATCH] Changed GoesTestSuite.TestIndexStatus, put json.Numbers as a field in expected map --- goes_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/goes_test.go b/goes_test.go index a5d232d..c108c41 100644 --- a/goes_test.go +++ b/goes_test.go @@ -849,8 +849,8 @@ func (s *GoesTestSuite) TestIndexStatus(c *C) { expectedIndices := map[string]IndexStatus{ indexName: { Index: map[string]interface{}{ - "primary_size_in_bytes": primarySizeInBytes, - "size_in_bytes": sizeInBytes, + "primary_size_in_bytes": jsonPrimarySizeInBytes, + "size_in_bytes": jsonSizeInBytes, }, Translog: map[string]uint64{ "operations": 0, @@ -870,7 +870,7 @@ func (s *GoesTestSuite) TestIndexStatus(c *C) { "total_size_in_bytes": float64(0), }, Refresh: map[string]interface{}{ - "total": refreshTotal, + "total": jsonRefreshTotal, "total_time_in_millis": float64(0), }, Flush: map[string]interface{}{