diff --git a/.travis.yml b/.travis.yml index 2f5b83a..d62b89f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,7 @@ language: go +go_import_path: gopkg.in/h2non/gentleman.v2 + go: - "1.13" - "1.12" diff --git a/client_test.go b/client_test.go index 8dcb4c8..8f3012b 100644 --- a/client_test.go +++ b/client_test.go @@ -157,7 +157,7 @@ func TestClientBaseURL(t *testing.T) { cli := New() cli.BaseURL(url) cli.Middleware.Run("request", cli.Context) - st.Expect(t, cli.Context.Request.URL.String(), "http://foo.com") + st.Expect(t, cli.Context.Request.URL.String(), "http://foo.com/bar/baz") } func TestClientPath(t *testing.T) { diff --git a/request_test.go b/request_test.go index 7a249df..f31d5c7 100644 --- a/request_test.go +++ b/request_test.go @@ -311,7 +311,7 @@ func TestRequestBaseURL(t *testing.T) { req := NewRequest() req.BaseURL(url) req.Middleware.Run("request", req.Context) - st.Expect(t, req.Context.Request.URL.String(), "http://foo.com") + st.Expect(t, req.Context.Request.URL.String(), "http://foo.com/bar/baz") } func TestRequestPath(t *testing.T) {