Browse Source

Fully clean up after test utils for proxy

pull/1398/head
Fred Hebert 8 years ago
parent
commit
2c155ead23
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      test/rebar_utils_SUITE.erl

+ 5
- 4
test/rebar_utils_SUITE.erl View File

@ -303,9 +303,10 @@ proxy_auth(_Config, ProxyEnvKey) ->
rebar_utils:get_proxy_auth()),
%% restore original proxy specification if any
restore_proxy_env(ProxyEnvKey, OldProxySpec).
restore_proxy_env(ProxyEnvKey, OldProxySpec),
application:unset_env(rebar, proxy_auth).
restore_proxy_env(_, false) ->
ok;
restore_proxy_env(ProxyEnvKey, false) ->
os:putenv(ProxyEnvKey, "");
restore_proxy_env(ProxyEnvKey, ProxySpec) ->
os:putenv(ProxyEnvKey, ProxySpec).
os:putenv(ProxyEnvKey, ProxySpec).

Loading…
Cancel
Save