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

fix: added new tests verctor that match v0.31.0 #100

Merged
merged 4 commits into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading