From 2bb228813f8578d0df16047bbbd3ebcc6d9f66ac Mon Sep 17 00:00:00 2001 From: Paul Bonser Date: Thu, 2 Feb 2017 18:03:38 -0600 Subject: [PATCH] Clear expected shards since that varies between versions --- goes_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/goes_test.go b/goes_test.go index f9c0835..f0e7e76 100644 --- a/goes_test.go +++ b/goes_test.go @@ -541,8 +541,7 @@ func (s *GoesTestSuite) TestDelete(c *C) { Version: 2, } response.Raw = nil - response.Shards.Total = 0 - response.Shards.Successful = 0 + response.Shards = Shard{} c.Assert(response, DeepEquals, expectedResponse) response, err = conn.Delete(d, url.Values{}) @@ -558,6 +557,7 @@ func (s *GoesTestSuite) TestDelete(c *C) { Version: 3, } response.Raw = nil + response.Shards = Shard{} c.Assert(response, DeepEquals, expectedResponse) } @@ -619,8 +619,7 @@ func (s *GoesTestSuite) TestDeleteByQuery(c *C) { Version: 0, } response.Raw = nil - response.Shards.Total = 0 - response.Shards.Successful = 0 + response.Shards = Shard{} c.Assert(response, DeepEquals, expectedResponse) //should be 0 docs after delete by query