Skip to content

Commit af7c33e

Browse files
fixup! Solve the immediate problem
1 parent a03c362 commit af7c33e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/test-manager/src/tests/tunnel.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -781,16 +781,17 @@ pub async fn test_establish_tunnel_without_api(
781781
// 3
782782
let borked_env = [("MULLVAD_API_ADDR", "1.3.3.7:421")];
783783
// 3.5 - Create a cleanup routine which resets the daemon's environment when the test is done.
784-
let runtime_handle = tokio::runtime::Handle::try_current()?;
785784
let mullvad_client_ = mullvad_client.clone();
786-
scopeguard::defer! {
785+
scopeguard::defer! {{
786+
let runtime_handle = tokio::runtime::Runtime::new().unwrap();
787+
let _rt_guard = runtime_handle.enter();
787788
let _ = runtime_handle.block_on(helpers::restart_daemon_with(
788789
&rpc,
789790
&ctx,
790791
mullvad_client_,
791792
helpers::get_app_env(),
792793
));
793-
};
794+
}};
794795
// 4
795796
log::debug!("Restarting the daemon with the following overrides: {borked_env:?}");
796797
let mut mullvad_client =

0 commit comments

Comments
 (0)