From 34f7caeaf69f4668a88f8294ec18665fd2756b84 Mon Sep 17 00:00:00 2001 From: Tomas Date: Mon, 17 Feb 2020 13:11:24 +0100 Subject: [PATCH] fix(tests): base url --- .travis.yml | 2 ++ client_test.go | 2 +- request_test.go | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) 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) {