diff options
| -rw-r--r-- | mullvad-daemon/tests/common/mod.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mullvad-daemon/tests/common/mod.rs b/mullvad-daemon/tests/common/mod.rs index 448905c5fe..27d74248b8 100644 --- a/mullvad-daemon/tests/common/mod.rs +++ b/mullvad-daemon/tests/common/mod.rs @@ -4,9 +4,10 @@ extern crate libc; #[cfg(not(unix))] extern crate mullvad_ipc_client; +extern crate mullvad_paths; extern crate os_pipe; -use std::fs::File; +use std::fs::{self, File}; use std::io::{BufRead, BufReader, Write}; use std::path::Path; use std::sync::{mpsc, Arc, Mutex}; @@ -129,5 +130,9 @@ impl Drop for DaemonRunner { process.kill().unwrap(); } } + + if let Ok(file_path) = mullvad_paths::get_rpc_address_path() { + let _ = fs::remove_file(file_path); + } } } |
