diff options
| author | Markus Pettersson <markus.pettersson@mullvad.net> | 2024-07-29 13:59:24 +0200 |
|---|---|---|
| committer | Markus Pettersson <markus.pettersson@mullvad.net> | 2024-07-29 13:59:24 +0200 |
| commit | 1ec271b4cddf6050cc7dbd355f73e73b74c808c0 (patch) | |
| tree | 174798e25c80cc1bb2fb667c4aaa71fa3d43f3ed /test/test-manager | |
| parent | 0836994f8fedad1cff36c0169936e382f54c43c4 (diff) | |
| parent | 514e8236f6d5a5e890e589c165ad2b24d2e19dd7 (diff) | |
| download | mullvadvpn-1ec271b4cddf6050cc7dbd355f73e73b74c808c0.tar.xz mullvadvpn-1ec271b4cddf6050cc7dbd355f73e73b74c808c0.zip | |
Merge branch 'rust-1.80-fixes-test-manager'
Diffstat (limited to 'test/test-manager')
| -rw-r--r-- | test/test-manager/src/tests/helpers.rs | 4 | ||||
| -rw-r--r-- | test/test-manager/test_macro/src/lib.rs | 40 |
2 files changed, 19 insertions, 25 deletions
diff --git a/test/test-manager/src/tests/helpers.rs b/test/test-manager/src/tests/helpers.rs index adefedcf98..cde1176781 100644 --- a/test/test-manager/src/tests/helpers.rs +++ b/test/test-manager/src/tests/helpers.rs @@ -349,8 +349,8 @@ pub async fn ensure_logged_in( /// - `Result::Ok(new_state)` if the daemon successfully connected to a tunnel /// - `Result::Err` if: /// - The daemon failed to even begin connecting. Then [`Error::Rpc`] is returned. -/// - The daemon started to connect but ended up in the [`TunnelState::Error`] state. -/// Then [`Error::UnexpectedErrorState`] is returned +/// - The daemon started to connect but ended up in the [`TunnelState::Error`] state. Then +/// [`Error::UnexpectedErrorState`] is returned pub async fn connect_and_wait( mullvad_client: &mut MullvadProxyClient, ) -> Result<TunnelState, Error> { diff --git a/test/test-manager/test_macro/src/lib.rs b/test/test-manager/test_macro/src/lib.rs index 7e19990b97..0249f9db6c 100644 --- a/test/test-manager/test_macro/src/lib.rs +++ b/test/test-manager/test_macro/src/lib.rs @@ -7,39 +7,33 @@ use test_rpc::meta::Os; /// /// The `test_function` macro will inject two arguments to your function: /// -/// * `rpc` - a [`test_rpc::client::ServiceClient]` used to make -/// remote-procedure calls inside the virtual machine running the test. This can -/// be used to perform arbitrary network requests, inspect the local file -/// system, rebooting .. +/// * `rpc` - a [`test_rpc::client::ServiceClient]` used to make remote-procedure calls inside the +/// virtual machine running the test. This can be used to perform arbitrary network requests, +/// inspect the local file system, rebooting .. /// -/// * `mullvad_client` - a [`mullvad_management_interface::MullvadProxyClient`] -/// which provides a bi-directional communication channel with the -/// `mullvad-daemon` running inside of the virtual machine. All RPC-calls as -/// defined in [`mullvad_management_interface::MullvadProxyClient`] are -/// available on `mullvad_client`. +/// * `mullvad_client` - a [`mullvad_management_interface::MullvadProxyClient`] which provides a +/// bi-directional communication channel with the `mullvad-daemon` running inside of the virtual +/// machine. All RPC-calls as defined in [`mullvad_management_interface::MullvadProxyClient`] are +/// available on `mullvad_client`. /// /// # Arguments /// /// The `test_function` macro takes 4 optional arguments /// -/// * `priority` - The order in which tests will be run where low numbers run -/// before high numbers and tests with the same number run in undefined order. -/// `priority` defaults to 0. +/// * `priority` - The order in which tests will be run where low numbers run before high numbers +/// and tests with the same number run in undefined order. `priority` defaults to 0. /// -/// * `cleanup` - If the cleanup function will run after the test is finished -/// and among other things reset the settings to the default value for the -/// daemon. -/// `cleanup` defaults to true. +/// * `cleanup` - If the cleanup function will run after the test is finished and among other things +/// reset the settings to the default value for the daemon. `cleanup` defaults to true. /// -/// * `must_succeed` - If the testing suite stops running if this test fails. -/// `must_succeed` defaults to false. +/// * `must_succeed` - If the testing suite stops running if this test fails. `must_succeed` +/// defaults to false. /// -/// * `always_run` - If the test should always run regardless of what test -/// filters are provided by the user. -/// `always_run` defaults to false. +/// * `always_run` - If the test should always run regardless of what test filters are provided by +/// the user. `always_run` defaults to false. /// -/// * `target_os` - The test should only run on the specified OS. This can currently be -/// set to `linux`, `windows`, or `macos`. +/// * `target_os` - The test should only run on the specified OS. This can currently be set to +/// `linux`, `windows`, or `macos`. /// /// # Examples /// |
