Skip to content

Commit

Permalink
fixup! Solve the immediate problem
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusPettersson98 committed Apr 9, 2024
1 parent a03c362 commit af7c33e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/test-manager/src/tests/tunnel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -781,16 +781,17 @@ pub async fn test_establish_tunnel_without_api(
// 3
let borked_env = [("MULLVAD_API_ADDR", "1.3.3.7:421")];
// 3.5 - Create a cleanup routine which resets the daemon's environment when the test is done.
let runtime_handle = tokio::runtime::Handle::try_current()?;
let mullvad_client_ = mullvad_client.clone();
scopeguard::defer! {
scopeguard::defer! {{
let runtime_handle = tokio::runtime::Runtime::new().unwrap();
let _rt_guard = runtime_handle.enter();
let _ = runtime_handle.block_on(helpers::restart_daemon_with(
&rpc,
&ctx,
mullvad_client_,
helpers::get_app_env(),
));
};
}};
// 4
log::debug!("Restarting the daemon with the following overrides: {borked_env:?}");
let mut mullvad_client =
Expand Down

0 comments on commit af7c33e

Please sign in to comment.