summaryrefslogtreecommitdiffhomepage
path: root/test/test-rpc/src
diff options
context:
space:
mode:
authorMarkus Pettersson <markus.pettersson@mullvad.net>2024-03-21 10:53:42 +0100
committerMarkus Pettersson <markus.pettersson@mullvad.net>2024-03-25 11:07:34 +0100
commit1bb03d8b151b643f86e026ebf250e5d452f9b727 (patch)
treee6c4ac7728725b546261cbc737af19f6abc4e7ed /test/test-rpc/src
parentb2a81664962728e2a7e8b8eee27050bde1756e20 (diff)
downloadmullvadvpn-1bb03d8b151b643f86e026ebf250e5d452f9b727.tar.xz
mullvadvpn-1bb03d8b151b643f86e026ebf250e5d452f9b727.zip
Make sure connecting works while API is unavailable
Diffstat (limited to 'test/test-rpc/src')
-rw-r--r--test/test-rpc/src/client.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test-rpc/src/client.rs b/test/test-rpc/src/client.rs
index 324669de3f..0c4010a521 100644
--- a/test/test-rpc/src/client.rs
+++ b/test/test-rpc/src/client.rs
@@ -292,6 +292,11 @@ impl ServiceClient {
Ok(())
}
+ /// Set environment variables specified by `env` and restart the Mullvad daemon.
+ ///
+ /// # Returns
+ /// - `Result::Ok` if the daemon was successfully restarted.
+ /// - `Result::Err(Error)` if the daemon could not be restarted and is thus no longer running.
pub async fn set_daemon_environment<Env, K, V>(&self, env: Env) -> Result<(), Error>
where
Env: IntoIterator<Item = (K, V)>,