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{
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{}{