summaryrefslogtreecommitdiffhomepage
path: root/mullvad-daemon/src/settings/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'mullvad-daemon/src/settings/mod.rs')
-rw-r--r--mullvad-daemon/src/settings/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/mullvad-daemon/src/settings/mod.rs b/mullvad-daemon/src/settings/mod.rs
index 0966a95590..00990ad412 100644
--- a/mullvad-daemon/src/settings/mod.rs
+++ b/mullvad-daemon/src/settings/mod.rs
@@ -677,6 +677,7 @@ mod test {
async fn test_deserialize_missing_settings() {
let LoadSettingsResult {
should_save,
+ #[cfg_attr(target_os = "android", expect(unused_variables))]
settings,
} = SettingsPersister::load_inner(|| async {
Err(Error::ReadError(
@@ -691,6 +692,7 @@ mod test {
"Settings should be saved to disk if they didn't exist previously"
);
+ #[cfg(not(target_os = "android"))]
assert!(
!settings.lockdown_mode,
"The daemon should not block the internet if settings are missing"
@@ -710,6 +712,7 @@ mod test {
async fn test_deserialize_invalid_settings() {
let LoadSettingsResult {
should_save,
+ #[cfg_attr(target_os = "android", expect(unused_variables))]
settings,
} = SettingsPersister::load_inner(|| async {
SettingsPersister::load_from_bytes(b"Not a valid settings file")
@@ -721,6 +724,7 @@ mod test {
"Settings should be saved to disk if they have become corrupt"
);
+ #[cfg(not(target_os = "android"))]
assert!(
settings.lockdown_mode,
"The daemon should block the internet if settings are corrupt"