From 4b35e6f0cff5fd5e7864c7c6670f21178fd44835 Mon Sep 17 00:00:00 2001 From: Paul Bonser Date: Thu, 2 Feb 2017 18:54:29 -0600 Subject: [PATCH] Fix up for 5.x, not really sure why ttl was set in the first place --- goes_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/goes_test.go b/goes_test.go index 58ea716..7e61aeb 100644 --- a/goes_test.go +++ b/goes_test.go @@ -457,9 +457,7 @@ func (s *GoesTestSuite) TestIndexIdDefined(c *C) { }, } - extraArgs := make(url.Values, 1) - extraArgs.Set("ttl", "86400000") - response, err := conn.Index(d, extraArgs) + response, err := conn.Index(d, nil) c.Assert(err, IsNil) expectedResponse := &Response{ @@ -471,6 +469,7 @@ func (s *GoesTestSuite) TestIndexIdDefined(c *C) { } response.Raw = nil + response.Shards = Shard{} c.Assert(response, DeepEquals, expectedResponse) }