From 0829bc871ec59fb93ff22fae59d6dd8ab2296915 Mon Sep 17 00:00:00 2001 From: Sebastian Holmin Date: Mon, 18 Nov 2024 10:49:31 +0100 Subject: [PATCH] Fix spelling mistakes --- test/test-manager/src/tests/helpers.rs | 10 +++++----- test/test-manager/src/tests/ui.rs | 5 +++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/test/test-manager/src/tests/helpers.rs b/test/test-manager/src/tests/helpers.rs index 3c24d88a4aab..05fe6dc57ee5 100644 --- a/test/test-manager/src/tests/helpers.rs +++ b/test/test-manager/src/tests/helpers.rs @@ -767,7 +767,7 @@ pub fn into_constraint(relay: &Relay) -> Constraint { /// Ping monitoring made easy! /// -/// Continously ping some destination while monitoring to detect diverging +/// Continuously ping some destination while monitoring to detect diverging /// packets. /// /// To customize [`Pinger`] before the pinging and network monitoring starts, @@ -897,7 +897,7 @@ impl PingerBuilder { } } -/// This helper spawns a seperate process which checks if we are connected to Mullvad, and tries to +/// This helper spawns a separate process which checks if we are connected to Mullvad, and tries to /// leak traffic outside the tunnel by sending TCP, UDP, and ICMP packets to [LEAK_DESTINATION]. pub struct ConnChecker { rpc: ServiceClient, @@ -962,7 +962,7 @@ impl ConnChecker { self.payload = Some(payload.into()) } - /// Spawn the connecton checker process and return a handle to it. + /// Spawn the connection checker process and return a handle to it. /// /// Dropping the handle will stop the process. /// **NOTE**: The handle must be dropped from a tokio runtime context. @@ -1101,7 +1101,7 @@ impl ConnCheckerHandle<'_> { } pub async fn check_connection(&mut self) -> anyhow::Result { - // Monitor all pakets going to LEAK_DESTINATION during the check. + // Monitor all packets going to LEAK_DESTINATION during the check. let leak_destination = self.checker.leak_destination; let monitor = start_packet_monitor( move |packet| packet.destination.ip() == leak_destination.ip(), @@ -1216,7 +1216,7 @@ pub mod custom_lists { /// name to a specific list before runtime. static IDS: LazyLock>> = LazyLock::new(|| Mutex::new(HashMap::new())); - /// Pre-defined (well-typed) custom lists which may be useuful in different test scenarios. + /// Pre-defined (well-typed) custom lists which may be useful in different test scenarios. #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] pub enum List { /// A selection of Nordic servers diff --git a/test/test-manager/src/tests/ui.rs b/test/test-manager/src/tests/ui.rs index 4aa0e614defb..6b9ce5b3a9b6 100644 --- a/test/test-manager/src/tests/ui.rs +++ b/test/test-manager/src/tests/ui.rs @@ -91,7 +91,7 @@ pub async fn test_ui_tunnel_settings( rpc: ServiceClient, mut mullvad_client: MullvadProxyClient, ) -> anyhow::Result<()> { - // NOTE: This test connects multiple times using various settings, some of which may cauase a + // NOTE: This test connects multiple times using various settings, some of which may cause a // significant increase in connection time, e.g. multihop and OpenVPN. For this reason, it is // preferable to only target low latency servers. use helpers::custom_lists::LowLatency; @@ -236,6 +236,7 @@ async fn test_custom_bridge_gui( // `test_manager::tests::access_methods::test_shadowsocks`. let gui_test = "custom-bridge.spec"; + let settings = mullvad_client.get_settings().await.unwrap(); let relay_list = mullvad_client.get_relay_locations().await.unwrap(); let relay_selector = helpers::get_daemon_relay_selector(&settings, relay_list); @@ -278,7 +279,7 @@ pub async fn test_import_settings_ui(_: TestContext, rpc: ServiceClient) -> Resu Ok(()) } -/// Test obufscation settings in the GUI +/// Test obfuscation settings in the GUI #[test_function] pub async fn test_obfuscation_settings_ui(_: TestContext, rpc: ServiceClient) -> Result<(), Error> { let ui_result = run_test(&rpc, &["obfuscation.spec"]).await?;