diff options
author | Nick Thomas <nick@gitlab.com> | 2021-03-17 18:53:54 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2021-03-17 18:53:54 +0000 |
commit | 88f94337bb87c0cc51f6badf7a4ff1826f25efaa (patch) | |
tree | 130f2777342645018f3f6b797ee0083d65910889 /internal/command/uploadpack/uploadpack_test.go | |
parent | 4b40a2cb8c71a5b490cad4c8e1ad2dc0e9b39548 (diff) | |
parent | ee41d0dfb7b02a19f5926bfe24dbad1df417a29e (diff) | |
download | gitlab-shell-88f94337bb87c0cc51f6badf7a4ff1826f25efaa.tar.gz |
Merge branch 'id-refactor-cleanup' into 'main'
Replace cleanup functions with t.Cleanup
See merge request gitlab-org/gitlab-shell!460
Diffstat (limited to 'internal/command/uploadpack/uploadpack_test.go')
-rw-r--r-- | internal/command/uploadpack/uploadpack_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/command/uploadpack/uploadpack_test.go b/internal/command/uploadpack/uploadpack_test.go index 20edb57..7b43ded 100644 --- a/internal/command/uploadpack/uploadpack_test.go +++ b/internal/command/uploadpack/uploadpack_test.go @@ -16,8 +16,7 @@ import ( func TestForbiddenAccess(t *testing.T) { requests := requesthandlers.BuildDisallowedByApiHandlers(t) - url, cleanup := testserver.StartHttpServer(t, requests) - defer cleanup() + url := testserver.StartHttpServer(t, requests) output := &bytes.Buffer{} |