Selaa lähdekoodia

Fully clean up after test utils for proxy

pull/1398/head
Fred Hebert 8 vuotta sitten
vanhempi
commit
2c155ead23
1 muutettua tiedostoa jossa 5 lisäystä ja 4 poistoa
  1. +5
    -4
      test/rebar_utils_SUITE.erl

+ 5
- 4
test/rebar_utils_SUITE.erl Näytä tiedosto

@ -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).

Ladataan…
Peruuta
Tallenna