From 6c0739bec7be470cc5bcb13a1acf41e41371dc7f Mon Sep 17 00:00:00 2001 From: Paul Bonser Date: Thu, 2 Feb 2017 19:09:04 -0600 Subject: [PATCH] More TTL and shard zeroing --- goes_test.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/goes_test.go b/goes_test.go index 7e61aeb..a0b9e25 100644 --- a/goes_test.go +++ b/goes_test.go @@ -391,9 +391,7 @@ func (s *GoesTestSuite) TestIndexWithFieldsInStruct(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{ @@ -405,6 +403,7 @@ func (s *GoesTestSuite) TestIndexWithFieldsInStruct(c *C) { } response.Raw = nil + response.Shards = Shard{} c.Assert(response, DeepEquals, expectedResponse) } @@ -428,9 +427,7 @@ func (s *GoesTestSuite) TestIndexWithFieldsNotInMapOrStruct(c *C) { Fields: "test", } - extraArgs := make(url.Values, 1) - extraArgs.Set("ttl", "86400000") - _, err = conn.Index(d, extraArgs) + _, err = conn.Index(d, nil) c.Assert(err, Not(IsNil)) }