Fix up for 5.x, not really sure why ttl was set in the first place

This commit is contained in:
Paul Bonser 2017-02-02 18:54:29 -06:00
parent 19c83bfeff
commit 4b35e6f0cf

View File

@ -457,9 +457,7 @@ func (s *GoesTestSuite) TestIndexIdDefined(c *C) {
}, },
} }
extraArgs := make(url.Values, 1) response, err := conn.Index(d, nil)
extraArgs.Set("ttl", "86400000")
response, err := conn.Index(d, extraArgs)
c.Assert(err, IsNil) c.Assert(err, IsNil)
expectedResponse := &Response{ expectedResponse := &Response{
@ -471,6 +469,7 @@ func (s *GoesTestSuite) TestIndexIdDefined(c *C) {
} }
response.Raw = nil response.Raw = nil
response.Shards = Shard{}
c.Assert(response, DeepEquals, expectedResponse) c.Assert(response, DeepEquals, expectedResponse)
} }