summaryrefslogtreecommitdiff
path: root/internal/config/config_test.go
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2021-08-13 14:50:02 +0000
committerNick Thomas <nick@gitlab.com>2021-08-13 14:50:02 +0000
commit51e7ed1be98c7cdc65078b604e2c46cd551d3c2e (patch)
tree5e7981aa66506c40376f64527a4644507b2e2a12 /internal/config/config_test.go
parentfa9e9ad01c410fc47f751e7aef2202928ac1a3ee (diff)
parent160dcb064412e53a638c4329a60feadaafb1ab48 (diff)
downloadgitlab-shell-51e7ed1be98c7cdc65078b604e2c46cd551d3c2e.tar.gz
Merge branch 'update/newclientopts' into 'main'
refactor: update usage of NewHTTPClient to NewHTTPClientWithOpts Closes #484 See merge request gitlab-org/gitlab-shell!507
Diffstat (limited to 'internal/config/config_test.go')
-rw-r--r--internal/config/config_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/config/config_test.go b/internal/config/config_test.go
index 5fa8e66..699a261 100644
--- a/internal/config/config_test.go
+++ b/internal/config/config_test.go
@@ -29,9 +29,10 @@ func TestHttpClient(t *testing.T) {
url := testserver.StartHttpServer(t, []testserver.TestRequestHandler{})
config := &Config{GitlabUrl: url}
- client := config.HttpClient()
+ client, err := config.HttpClient()
+ require.NoError(t, err)
- _, err := client.Get("http://host.com/path")
+ _, err = client.Get("http://host.com/path")
require.NoError(t, err)
ms, err := prometheus.DefaultGatherer.Gather()