Changed GoesTestSuite.TestIndexStatus, put json.Numbers as a field in expected map

This commit is contained in:
atyron 2016-09-29 18:57:24 +03:00
parent 7cfa743cd0
commit c90b310032

View File

@ -849,8 +849,8 @@ func (s *GoesTestSuite) TestIndexStatus(c *C) {
expectedIndices := map[string]IndexStatus{ expectedIndices := map[string]IndexStatus{
indexName: { indexName: {
Index: map[string]interface{}{ Index: map[string]interface{}{
"primary_size_in_bytes": primarySizeInBytes, "primary_size_in_bytes": jsonPrimarySizeInBytes,
"size_in_bytes": sizeInBytes, "size_in_bytes": jsonSizeInBytes,
}, },
Translog: map[string]uint64{ Translog: map[string]uint64{
"operations": 0, "operations": 0,
@ -870,7 +870,7 @@ func (s *GoesTestSuite) TestIndexStatus(c *C) {
"total_size_in_bytes": float64(0), "total_size_in_bytes": float64(0),
}, },
Refresh: map[string]interface{}{ Refresh: map[string]interface{}{
"total": refreshTotal, "total": jsonRefreshTotal,
"total_time_in_millis": float64(0), "total_time_in_millis": float64(0),
}, },
Flush: map[string]interface{}{ Flush: map[string]interface{}{