diff options
| author | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2018-04-19 20:59:47 -0300 |
|---|---|---|
| committer | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2018-06-20 08:08:31 -0300 |
| commit | 01d2e843d4ccb25cf17b4a984348a34b336df877 (patch) | |
| tree | 279460f6b023f2c3885adbb581401cb0211fbabe | |
| parent | 891806c1d4ffd8a3da6fb2ea6b182a9fd04fd76b (diff) | |
| download | mullvadvpn-01d2e843d4ccb25cf17b4a984348a34b336df877.tar.xz mullvadvpn-01d2e843d4ccb25cf17b4a984348a34b336df877.zip | |
Remove RPC address file after integration test
| -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); + } } } |
