Skip to content

Commit

Permalink
remove a debug test
Browse files Browse the repository at this point in the history
  • Loading branch information
muhamadazmy committed Jun 5, 2024
1 parent e80f815 commit d0292d3
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions src/twin/substrate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,37 +258,6 @@ mod tests {
);
}

#[tokio::test]
async fn test_get_ashraf_twin() {
let db = SubstrateTwinDB::new(vec![String::from("wss://tfchain.grid.tf:443")], NoCache)
.await
.context("cannot create substrate twin db object")
.unwrap();

let twin = db
.get_twin(4307)
.await
.context("can't get twin from substrate")
.unwrap()
.unwrap();

// NOTE: this currently checks against devnet substrate
// as provided by the url wss://tfchain.dev.grid.tf.
// if this environment was reset at some point. those
// values won't match anymore.

assert!(!matches!(twin.relay, None));
let relay = twin.relay.unwrap();
assert_eq!(relay.0.len(), 1);
assert!(relay.0.contains("relay.02.grid.tf"));
assert!(twin.pk.is_some());

assert_eq!(
twin.account.to_string(),
"5GYtsF9XyaWUEa1zZMhZRe1p9XRMkF21wGyg4G7pPrJok942"
);
}

#[tokio::test]
async fn test_get_twin_id() {
let db = SubstrateTwinDB::new(vec![String::from("wss://tfchain.dev.grid.tf:443")], NoCache)
Expand Down

0 comments on commit d0292d3

Please sign in to comment.