diff options
author | Igor Drozdov <idrozdov@gitlab.com> | 2021-07-14 17:43:36 +0300 |
---|---|---|
committer | Igor Drozdov <idrozdov@gitlab.com> | 2021-07-14 17:43:36 +0300 |
commit | e033223ef7ea1e5597fc7aea744b1aed4d667815 (patch) | |
tree | 0dd9adedd7bcf2b7de3e2e26855f2191c4725680 /client/httpsclient_test.go | |
parent | 1adc5f1be786535783b689e12301871343d086a1 (diff) | |
download | gitlab-shell-e033223ef7ea1e5597fc7aea744b1aed4d667815.tar.gz |
Refactor testhelper.PrepareTestRootDir using t.Cleanup
Diffstat (limited to 'client/httpsclient_test.go')
-rw-r--r-- | client/httpsclient_test.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/client/httpsclient_test.go b/client/httpsclient_test.go index 670f94a..48efa91 100644 --- a/client/httpsclient_test.go +++ b/client/httpsclient_test.go @@ -98,9 +98,7 @@ func TestFailedRequests(t *testing.T) { } func setupWithRequests(t *testing.T, caFile, caPath, clientCAPath, clientCertPath, clientKeyPath string, selfSigned bool) *GitlabNetClient { - testDirCleanup, err := testhelper.PrepareTestRootDir() - require.NoError(t, err) - defer testDirCleanup() + testhelper.PrepareTestRootDir(t) requests := []testserver.TestRequestHandler{ { |