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, 1 insertions, 4 deletions
diff --git a/internal/git/command_factory_test.go b/internal/git/command_factory_test.go
index 6b3157791..c80ea1a84 100644
--- a/internal/git/command_factory_test.go
+++ b/internal/git/command_factory_test.go
@@ -5,7 +5,6 @@ import (
"io"
"net/http"
"net/http/httptest"
- "os"
"testing"
"github.com/stretchr/testify/require"
@@ -26,9 +25,7 @@ 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, cancel := testhelper.Context()
defer cancel()