Skip to content

Commit

Permalink
Misc changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Serock3 committed Jan 13, 2025
1 parent 949b2b7 commit 8c79791
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
13 changes: 11 additions & 2 deletions test/test-manager/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,17 @@ async fn main() -> Result<()> {
};

if let Some(mullvad_host) = mullvad_host {
log::trace!("Setting Mullvad host using --mullvad-host flag");
config.mullvad_host = Some(mullvad_host);
if let Some(old_host) = config.mullvad_host.replace(mullvad_host) {
log::info!(
"Overriding Mullvad host from {old_host} to {}",
config.mullvad_host.as_ref().unwrap()
);
} else {
log::info!(
"Setting Mullvad host to {}",
config.mullvad_host.as_ref().unwrap()
);
}
}
let mullvad_host = config.get_host();
log::debug!("Mullvad host: {mullvad_host}");
Expand Down
5 changes: 3 additions & 2 deletions test/test-manager/src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,9 @@ pub async fn prepare_daemon(
Ok(mullvad_client)
}

/// Create an "anonynmous" custom list for this test. The custom list will
/// have the same as the test and contain the locations as specified by [TestMetadata::location].
/// Create an "anonymous" custom list for this test. The custom list will
/// have the same name as the test and contain the locations as specified by
/// [TestMetadata::location].
pub async fn prepare_custom_lists(
mullvad_client: &mut MullvadProxyClient,
test: &TestMetadata,
Expand Down

0 comments on commit 8c79791

Please sign in to comment.