diff options
Diffstat (limited to 'internal/git/command_factory_test.go')
-rw-r--r-- | internal/git/command_factory_test.go | 5 |
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) |