Skip to content

Commit

Permalink
use non blocking 2
Browse files Browse the repository at this point in the history
Signed-off-by: George Mulhearn <gmulhearn@anonyome.com>
  • Loading branch information
gmulhearn-anonyome committed Jul 23, 2024
1 parent 9f4ccd5 commit a51b1d0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions aries/agents/mediator/tests/mediator-oob-invitation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,22 @@ static LOGGING_INIT: std::sync::Once = std::sync::Once::new();

const ENDPOINT_ROOT: &str = "http://localhost:8005";

#[test]
fn endpoint_invitation_returns_oob() -> Result<()> {
#[tokio::test]
async fn endpoint_invitation_returns_oob() -> Result<()> {
LOGGING_INIT.call_once(setup_env_logging);

let client = reqwest::blocking::Client::new();
let client = reqwest::Client::new();
let base: Url = ENDPOINT_ROOT.parse().unwrap();
let endpoint_register_json = base.join("/invitation").unwrap();

let res = client
.get(endpoint_register_json)
.send()?
.send()
.await?
.error_for_status()?;
info!("{:?}", res);

let _oob: OOBInvitation = res.json()?;
let _oob: OOBInvitation = res.json().await?;

Ok(())
}

0 comments on commit a51b1d0

Please sign in to comment.