Skip to content

Commit

Permalink
Document connect_and_wait
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusPettersson98 committed Oct 11, 2023
1 parent 9962a56 commit 42cd82a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test-manager/src/tests/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ pub async fn ping_with_timeout(
.map_err(Error::Rpc)
}

/// Try to connect to a Mullvad Tunnel.
///
/// If that fails for whatever reason, the Mullvad daemon ends up in the
/// [`TunnelState::Error`] state & [`Error::DaemonError`] is returned.
pub async fn connect_and_wait(mullvad_client: &mut ManagementServiceClient) -> Result<(), Error> {
log::info!("Connecting");

Expand Down

0 comments on commit 42cd82a

Please sign in to comment.