diff options
author | feistel <6742251-feistel@users.noreply.gitlab.com> | 2021-08-13 13:51:21 +0000 |
---|---|---|
committer | feistel <6742251-feistel@users.noreply.gitlab.com> | 2021-08-13 13:51:21 +0000 |
commit | 160dcb064412e53a638c4329a60feadaafb1ab48 (patch) | |
tree | df8c4dd3134cc1905043b8d62c4b1705dddd7bc6 /internal/config/config_test.go | |
parent | 8a1d584de771b3267374397cc99c019de1c4500c (diff) | |
download | gitlab-shell-160dcb064412e53a638c4329a60feadaafb1ab48.tar.gz |
refactor: change httpclient to return an error
Diffstat (limited to 'internal/config/config_test.go')
-rw-r--r-- | internal/config/config_test.go | 5 |
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() |