Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
fix: added new tests verctor that match v0.31.0 (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
rllola authored Feb 6, 2024
1 parent 2dc5d0d commit beefffe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/block_results_vector.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions tests/block_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@ mod block_tests {
let hc = httpc_test::new_client(address).expect("Server not running?");
// hash bellow is the last block(301)
let response = hc
.do_get("/block/hash/2b1f263011cba260b415518c7ee0f7531ff8134afd728997c459c6392d1e3a42")
.do_get("/block/hash/69b7c16b7a1eeca306968afba4398530b8d331d264ab2bb27e09647810a886f2")
.await
.expect("Block does not exist");

response.print().await.unwrap();

let header = response.json_body_as::<BlockInfo>().unwrap();

assert_eq!(header.tx_hashes.len(), 4)
assert_eq!(header.tx_hashes.len(), 81)
}
}
2 changes: 1 addition & 1 deletion tests/blocks_vector.json

Large diffs are not rendered by default.

0 comments on commit beefffe

Please sign in to comment.