summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/rebar_utils_SUITE.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/rebar_utils_SUITE.erl b/test/rebar_utils_SUITE.erl
index 57b6474..dd92bbf 100644
--- a/test/rebar_utils_SUITE.erl
+++ b/test/rebar_utils_SUITE.erl
@@ -303,9 +303,9 @@ proxy_auth(_Config, ProxyEnvKey) ->
rebar_utils:get_proxy_auth()),
%% restore original proxy specification if any
- restore_proxy_env(OldProxySpec).
+ restore_proxy_env(ProxyEnvKey, OldProxySpec).
-restore_proxy_env(false) ->
+restore_proxy_env(_, false) ->
ok;
-restore_proxy_env(ProxySpec) ->
- os:putenv("http_proxy", ProxySpec).
+restore_proxy_env(ProxyEnvKey, ProxySpec) ->
+ os:putenv(ProxyEnvKey, ProxySpec).