From 89c18a567fc21a6fc293ebcc5327b856cf36c088 Mon Sep 17 00:00:00 2001 From: yuxh Date: Mon, 13 Mar 2023 16:16:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=B5=8B=E8=AF=95=E7=94=A8?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- goes_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/goes_test.go b/goes_test.go index 0050a36..0526e9f 100644 --- a/goes_test.go +++ b/goes_test.go @@ -5,14 +5,13 @@ package goes import ( + . "gopkg.in/check.v1" "net/http" "net/url" "os" "strings" "testing" "time" - - . "github.com/go-check/check" ) var ( @@ -41,7 +40,7 @@ func (s *GoesTestSuite) SetUpTest(c *C) { func (s *GoesTestSuite) TestNewClient(c *C) { conn := NewClient(ESHost, ESPort) - c.Assert(conn, DeepEquals, &Client{ESHost, ESPort, http.DefaultClient, ""}) + c.Assert(conn, DeepEquals, &Client{ESHost, ESPort, http.DefaultClient, "", "", ""}) } func (s *GoesTestSuite) TestWithHTTPClient(c *C) { @@ -54,7 +53,7 @@ func (s *GoesTestSuite) TestWithHTTPClient(c *C) { } conn := NewClient(ESHost, ESPort).WithHTTPClient(cl) - c.Assert(conn, DeepEquals, &Client{ESHost, ESPort, cl, ""}) + c.Assert(conn, DeepEquals, &Client{ESHost, ESPort, cl, "", "", ""}) c.Assert(conn.Client.Transport.(*http.Transport).DisableCompression, Equals, true) c.Assert(conn.Client.Transport.(*http.Transport).ResponseHeaderTimeout, Equals, 1*time.Second) }