summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorJoakim Hulthe <joakim.hulthe@mullvad.net>2025-05-14 21:00:52 +0200
committerJoakim Hulthe <joakim.hulthe@mullvad.net>2025-05-14 21:00:52 +0200
commite191432724e7c2f07953704a8fc875e4ccf9f55e (patch)
tree388d04d931e5706adaa35614a7347299f249718b /test
parentd17158a3384e3fd2aa7f2e06ff6aa5bfb728eb66 (diff)
parent49f0eea29f68f01dd52b7b783a1dabd88fc964c8 (diff)
downloadmullvadvpn-e191432724e7c2f07953704a8fc875e4ccf9f55e.tar.xz
mullvadvpn-e191432724e7c2f07953704a8fc875e4ccf9f55e.zip
Merge branch 'investigate-dns-issues-tb-3-days-des-2076'
Diffstat (limited to 'test')
-rw-r--r--test/test-manager/src/tests/helpers.rs13
1 files changed, 10 insertions, 3 deletions
diff --git a/test/test-manager/src/tests/helpers.rs b/test/test-manager/src/tests/helpers.rs
index 1ad7c9931a..97c2ded0f7 100644
--- a/test/test-manager/src/tests/helpers.rs
+++ b/test/test-manager/src/tests/helpers.rs
@@ -75,9 +75,16 @@ pub async fn install_app(
rpc.install_app(get_package_desc(app_filename)).await?;
// verify that daemon is running
- if rpc.mullvad_daemon_get_status().await? != ServiceStatus::Running {
- bail!(Error::DaemonNotRunning);
- }
+ tokio::time::timeout(Duration::from_secs(5), async {
+ loop {
+ if rpc.mullvad_daemon_get_status().await? == ServiceStatus::Running {
+ return Ok::<_, Error>(());
+ }
+ sleep(Duration::from_millis(100)).await;
+ }
+ })
+ .await
+ .map_err(|_timeout| Error::DaemonNotRunning)??;
// Set the log level to trace
rpc.set_daemon_log_level(test_rpc::mullvad_daemon::Verbosity::Trace)