Skip to content

Commit

Permalink
Fix spelling mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
Serock3 committed Nov 18, 2024
1 parent af4b81a commit 0829bc8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
10 changes: 5 additions & 5 deletions test/test-manager/src/tests/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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(),
Expand Down Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions test/test-manager/src/tests/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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?;
Expand Down

0 comments on commit 0829bc8

Please sign in to comment.