diff options
| author | Sebastian Holmin <sebastian.holmin@mullvad.net> | 2025-05-09 09:59:08 +0200 |
|---|---|---|
| committer | Sebastian Holmin <sebastian.holmin@mullvad.net> | 2025-05-12 10:02:59 +0200 |
| commit | ce1fcbe0cc407f3e895bd8dec83f97c71d0d6088 (patch) | |
| tree | 78785236b6482ac00ce8445c1420ba6b3057a8d1 | |
| parent | 74933a79d2a328aeb1008502666807a4411901fd (diff) | |
| download | mullvadvpn-ce1fcbe0cc407f3e895bd8dec83f97c71d0d6088.tar.xz mullvadvpn-ce1fcbe0cc407f3e895bd8dec83f97c71d0d6088.zip | |
Wait for connected state
| -rw-r--r-- | test/test-manager/src/tests/relay_ip_overrides.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test-manager/src/tests/relay_ip_overrides.rs b/test/test-manager/src/tests/relay_ip_overrides.rs index cff62dbedf..a38be6f905 100644 --- a/test/test-manager/src/tests/relay_ip_overrides.rs +++ b/test/test-manager/src/tests/relay_ip_overrides.rs @@ -98,6 +98,8 @@ pub async fn test_wireguard_ip_override( .await?; log::info!("checking that the connection works again with the added overrides"); + // Setting an IP override will cause the client to reconnect, so we have to wait for that + helpers::connect_and_wait(&mut mullvad_client).await?; let _ = helpers::geoip_lookup_with_retries(&rpc) .await .with_context(|| "Can't access internet through relay ip override")?; @@ -158,6 +160,8 @@ pub async fn test_openvpn_ip_override( .await?; log::info!("checking that the connection works again with the added overrides"); + // Setting an IP override will cause the client to reconnect, so we have to wait for that + helpers::connect_and_wait(&mut mullvad_client).await?; let _ = helpers::geoip_lookup_with_retries(&rpc) .await .with_context(|| "Can't access internet through relay ip override")?; |
