Skip to content

Commit

Permalink
Enable integration test for DAITA on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Jun 25, 2024
1 parent 1a20bda commit 8823c94
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
1 change: 0 additions & 1 deletion test/test-manager/src/tests/dns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,6 @@ async fn connect_local_wg_relay(mullvad_client: &mut MullvadProxyClient) -> Resu
allowed_ips: vec!["0.0.0.0/0".parse().unwrap()],
endpoint: peer_addr,
psk: None,
#[cfg(target_os = "linux")]
constant_packet_size: false,
},
ipv4_gateway: CUSTOM_TUN_GATEWAY,
Expand Down
1 change: 0 additions & 1 deletion test/test-manager/src/tests/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,6 @@ pub fn unreachable_wireguard_tunnel() -> talpid_types::net::wireguard::Connectio
],
endpoint: "1.3.3.7:1234".parse().unwrap(),
psk: None,
#[cfg(target_os = "linux")]
constant_packet_size: false,
},
exit_peer: None,
Expand Down
7 changes: 2 additions & 5 deletions test/test-manager/src/tests/tunnel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ use crate::{
tests::helpers::{login_with_retries, ConnChecker},
};

#[cfg(not(target_os = "macos"))]
use anyhow::Context;
use anyhow::{bail, ensure};
use anyhow::{bail, ensure, Context};
use mullvad_management_interface::MullvadProxyClient;
use mullvad_relay_selector::query::builder::RelayQueryBuilder;
use mullvad_types::{
Expand Down Expand Up @@ -408,8 +406,7 @@ pub async fn test_wireguard_autoconnect(
/// # Limitations
///
/// The test does not analyze any traffic, nor verify that DAITA is in use.
#[cfg(not(target_os = "macos"))]
#[test_function(target_os = "linux", target_os = "windows")]
#[test_function]
pub async fn test_daita(
_: TestContext,
rpc: ServiceClient,
Expand Down
3 changes: 1 addition & 2 deletions test/test-manager/src/tests/tunnel_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,7 @@ pub async fn test_connected_state(
obfuscation: None,
entry_endpoint: None,
tunnel_interface: _,
#[cfg(target_os = "linux")]
daita: _,
daita: _,
},
..
} => {
Expand Down

0 comments on commit 8823c94

Please sign in to comment.