Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'internal/git/command_factory_test.go')
-rw-r--r--internal/git/command_factory_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/git/command_factory_test.go b/internal/git/command_factory_test.go
index d709dd130..ede45c745 100644
--- a/internal/git/command_factory_test.go
+++ b/internal/git/command_factory_test.go
@@ -33,9 +33,8 @@ func TestGitCommandProxy(t *testing.T) {
}))
defer ts.Close()
- oldHTTPProxy := os.Getenv("http_proxy")
- defer require.NoError(t, os.Setenv("http_proxy", oldHTTPProxy))
- require.NoError(t, os.Setenv("http_proxy", ts.URL))
+ testhelper.ModifyEnvironment(t, "http_proxy", ts.URL)
+
ctx := testhelper.Context(t)
dir := testhelper.TempDir(t)