summaryrefslogtreecommitdiff
path: root/client/client_test.go
diff options
context:
space:
mode:
authorIgor Drozdov <idrozdov@gitlab.com>2021-07-14 17:43:36 +0300
committerIgor Drozdov <idrozdov@gitlab.com>2021-07-14 17:43:36 +0300
commite033223ef7ea1e5597fc7aea744b1aed4d667815 (patch)
tree0dd9adedd7bcf2b7de3e2e26855f2191c4725680 /client/client_test.go
parent1adc5f1be786535783b689e12301871343d086a1 (diff)
downloadgitlab-shell-e033223ef7ea1e5597fc7aea744b1aed4d667815.tar.gz
Refactor testhelper.PrepareTestRootDir using t.Cleanup
Diffstat (limited to 'client/client_test.go')
-rw-r--r--client/client_test.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/client/client_test.go b/client/client_test.go
index 90cd499..8c5599e 100644
--- a/client/client_test.go
+++ b/client/client_test.go
@@ -18,9 +18,7 @@ import (
)
func TestClients(t *testing.T) {
- testDirCleanup, err := testhelper.PrepareTestRootDir()
- require.NoError(t, err)
- defer testDirCleanup()
+ testhelper.PrepareTestRootDir(t)
testCases := []struct {
desc string