Skip to content

Commit

Permalink
update tests for client connecting to well known networks
Browse files Browse the repository at this point in the history
  • Loading branch information
UMR1352 committed Dec 4, 2024
1 parent a87ae91 commit 352f905
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions identity_iota_core/src/rebased/iota/well_known_networks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,15 @@ mod test {

#[tokio::test]
async fn identity_client_connection_to_devnet_works() -> anyhow::Result<()> {
IdentityClientReadOnly::new(IotaClientBuilder::default().build_devnet().await?).await?;
let client = IdentityClientReadOnly::new(IotaClientBuilder::default().build_devnet().await?).await?;
assert_eq!(client.network().as_ref(), "devnet");
Ok(())
}

#[tokio::test]
async fn identity_client_connection_to_testnet_works() -> anyhow::Result<()> {
IdentityClientReadOnly::new(IotaClientBuilder::default().build_testnet().await?).await?;
let client = IdentityClientReadOnly::new(IotaClientBuilder::default().build_testnet().await?).await?;
assert_eq!(client.network().as_ref(), "testnet");
Ok(())
}
}

0 comments on commit 352f905

Please sign in to comment.