Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Yamaguchi committed Jun 25, 2024
1 parent 9bdba76 commit 496b922
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ pub struct Tx {

#[derive(Deserialize, Clone, Debug, PartialEq, Eq)]
pub struct BlockTime {
pub timestamp: u64,
pub time: u64,
pub height: u32,
}

Expand Down Expand Up @@ -133,9 +133,9 @@ impl Tx {
TxStatus {
confirmed: true,
block_height: Some(height),
block_time: Some(timestamp),
block_time: Some(time),
..
} => Some(BlockTime { timestamp, height }),
} => Some(BlockTime { time, height }),
_ => None,
}
}
Expand Down
3 changes: 0 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,6 @@ mod test {

#[cfg(all(feature = "blocking", feature = "async"))]
#[tokio::test]
#[ignore]
async fn test_get_tx_info() {
let (blocking_client, async_client) = setup_clients().await;

Expand Down Expand Up @@ -552,7 +551,6 @@ mod test {
tx_res.fee.unwrap().abs().to_unsigned().unwrap()
);
assert!(tx_info.status.confirmed);
assert_eq!(tx_info.status.block_height, tx_res.info.blockheight);
assert_eq!(tx_info.status.block_hash, tx_res.info.blockhash);
assert_eq!(tx_info.status.block_time, tx_res.info.blocktime);

Expand Down Expand Up @@ -907,7 +905,6 @@ mod test {

#[cfg(all(feature = "blocking", feature = "async"))]
#[tokio::test]
#[ignore]
async fn test_get_blocks() {
let (blocking_client, async_client) = setup_clients().await;
let start_height = TAPYRUSD.client.get_block_count().unwrap();
Expand Down

0 comments on commit 496b922

Please sign in to comment.