File tree 1 file changed +4
-3
lines changed
test/test-manager/src/tests
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -781,16 +781,17 @@ pub async fn test_establish_tunnel_without_api(
781
781
// 3
782
782
let borked_env = [ ( "MULLVAD_API_ADDR" , "1.3.3.7:421" ) ] ;
783
783
// 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 ( ) ?;
785
784
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( ) ;
787
788
let _ = runtime_handle. block_on( helpers:: restart_daemon_with(
788
789
& rpc,
789
790
& ctx,
790
791
mullvad_client_,
791
792
helpers:: get_app_env( ) ,
792
793
) ) ;
793
- } ;
794
+ } } ;
794
795
// 4
795
796
log:: debug!( "Restarting the daemon with the following overrides: {borked_env:?}" ) ;
796
797
let mut mullvad_client =
You can’t perform that action at this time.
0 commit comments