summaryrefslogtreecommitdiffhomepage
path: root/test/test-manager/src
diff options
context:
space:
mode:
authorSebastian Holmin <sebastian.holmin@mullvad.net>2024-11-18 10:49:31 +0100
committerSebastian Holmin <sebastian.holmin@mullvad.net>2024-11-20 08:39:30 +0100
commit1ff1dcfdff6b96d5b94b7984292415d34ccbef5b (patch)
treef0ab57b33ddf18f39d3a8ad8f1549e10ae6f8d1e /test/test-manager/src
parent497916cb642970abb7a6270f402263b70c5a9648 (diff)
downloadmullvadvpn-1ff1dcfdff6b96d5b94b7984292415d34ccbef5b.tar.xz
mullvadvpn-1ff1dcfdff6b96d5b94b7984292415d34ccbef5b.zip
Fix spelling mistakes
Diffstat (limited to 'test/test-manager/src')
-rw-r--r--test/test-manager/src/tests/helpers.rs10
-rw-r--r--test/test-manager/src/tests/ui.rs5
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 ab03ba0c06..ff581c8f62 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<LocationConstraint> {
/// 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<ConnectionStatus> {
- // 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<Mutex<HashMap<List, Id>>> = 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 4aa0e614de..6b9ce5b3a9 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?;