Clear expected shards since that varies between versions

This commit is contained in:
Paul Bonser 2017-02-02 18:03:38 -06:00
parent f82254f6d3
commit 2bb228813f

View File

@ -541,8 +541,7 @@ func (s *GoesTestSuite) TestDelete(c *C) {
Version: 2, Version: 2,
} }
response.Raw = nil response.Raw = nil
response.Shards.Total = 0 response.Shards = Shard{}
response.Shards.Successful = 0
c.Assert(response, DeepEquals, expectedResponse) c.Assert(response, DeepEquals, expectedResponse)
response, err = conn.Delete(d, url.Values{}) response, err = conn.Delete(d, url.Values{})
@ -558,6 +557,7 @@ func (s *GoesTestSuite) TestDelete(c *C) {
Version: 3, Version: 3,
} }
response.Raw = nil response.Raw = nil
response.Shards = Shard{}
c.Assert(response, DeepEquals, expectedResponse) c.Assert(response, DeepEquals, expectedResponse)
} }
@ -619,8 +619,7 @@ func (s *GoesTestSuite) TestDeleteByQuery(c *C) {
Version: 0, Version: 0,
} }
response.Raw = nil response.Raw = nil
response.Shards.Total = 0 response.Shards = Shard{}
response.Shards.Successful = 0
c.Assert(response, DeepEquals, expectedResponse) c.Assert(response, DeepEquals, expectedResponse)
//should be 0 docs after delete by query //should be 0 docs after delete by query