diff options
| author | Markus Pettersson <markus.pettersson@mullvad.net> | 2024-11-08 12:56:52 +0100 |
|---|---|---|
| committer | Markus Pettersson <markus.pettersson@mullvad.net> | 2024-11-12 09:08:12 +0100 |
| commit | 7d6d4e71f0de401ae1a8f7f476a867a137cdf7aa (patch) | |
| tree | f6b0240bc9e6d42fd4b576314ca7dcf068d65cc6 /test | |
| parent | 5b483ea6768eb6347f9fdc3deba60276fe3d1361 (diff) | |
| download | mullvadvpn-7d6d4e71f0de401ae1a8f7f476a867a137cdf7aa.tar.xz mullvadvpn-7d6d4e71f0de401ae1a8f7f476a867a137cdf7aa.zip | |
Address `test_quantum_resistant_tunnel` flakiness
Limit relay selection in
`test_quantum_resistant_tunnel` to reduce flakiness.
Hopefully this should be able to (at least partially) mitigate timeout
related issues.
Diffstat (limited to 'test')
| -rw-r--r-- | test/test-manager/src/tests/tunnel.rs | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/test/test-manager/src/tests/tunnel.rs b/test/test-manager/src/tests/tunnel.rs index cdb890164b..e7056a629d 100644 --- a/test/test-manager/src/tests/tunnel.rs +++ b/test/test-manager/src/tests/tunnel.rs @@ -445,7 +445,11 @@ pub async fn test_quantum_resistant_tunnel( _: TestContext, rpc: ServiceClient, mut mullvad_client: MullvadProxyClient, -) -> Result<(), Error> { +) -> anyhow::Result<()> { + // NOTE: We have experienced flakiness due to timeout issues if distant relays are selected. + // This is an attempt to try to reduce this type of flakiness. + use helpers::custom_lists::LowLatency; + mullvad_client .set_quantum_resistant_tunnel(wireguard::QuantumResistantState::Off) .await @@ -459,13 +463,12 @@ pub async fn test_quantum_resistant_tunnel( log::info!("Setting tunnel protocol to WireGuard"); - let relay_settings = RelaySettings::Normal(RelayConstraints { - tunnel_protocol: Constraint::Only(TunnelType::Wireguard), - ..Default::default() - }); - set_relay_settings(&mut mullvad_client, relay_settings) - .await - .expect("Failed to update relay settings"); + let query = RelayQueryBuilder::new() + .wireguard() + .location(LowLatency) + .build(); + + apply_settings_from_relay_query(&mut mullvad_client, query).await?; mullvad_client .set_quantum_resistant_tunnel(wireguard::QuantumResistantState::On) |
