summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorMarkus Pettersson <markus.pettersson@mullvad.net>2023-12-22 13:03:25 +0100
committerMarkus Pettersson <markus.pettersson@mullvad.net>2024-01-08 09:04:49 +0100
commit0dbebfd86be58d7b5e8ae92f637a3cdbc88b62db (patch)
tree2ac0841fce76224ea381df274116f46b267ede3e /test
parent10c990ee1d296970ecd60fbde0ce147ca922ec99 (diff)
downloadmullvadvpn-0dbebfd86be58d7b5e8ae92f637a3cdbc88b62db.tar.xz
mullvadvpn-0dbebfd86be58d7b5e8ae92f637a3cdbc88b62db.zip
Remove `ApiEndpointUpdateHandler`
Previously, the `mullvad-api` would tell the `mullvad-daemon` that it wanted a new API endpoint by calling a certain callback (`ApiEndpointUpdateCallback`), which would asynchronously resolve a new API endpoint and tell the daemon to punch an appropriate hole in the firewall for that particular endpoint before the `mullvad-api` crate would consume it. The logic of the callback can be moved inside `AccessModeSelector`, which simplifies the contract between `mullvad-daemon` and `mullvad-api` somewhat.
Diffstat (limited to 'test')
-rw-r--r--test/test-manager/src/tests/account.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/test-manager/src/tests/account.rs b/test/test-manager/src/tests/account.rs
index 78eb42adc4..8b30f85768 100644
--- a/test/test-manager/src/tests/account.rs
+++ b/test/test-manager/src/tests/account.rs
@@ -237,10 +237,7 @@ pub async fn new_device_client() -> DevicesProxy {
let api = mullvad_api::Runtime::new(tokio::runtime::Handle::current())
.expect("failed to create api runtime");
let rest_handle = api
- .mullvad_rest_handle(
- mullvad_api::proxy::ApiConnectionMode::Direct.into_repeat(),
- |_| async { true },
- )
+ .mullvad_rest_handle(mullvad_api::proxy::ApiConnectionMode::Direct.into_repeat())
.await;
DevicesProxy::new(rest_handle)
}