Skip to content

Commit 1535f9b

Browse files
committed
reformat unit tests
1 parent fc2e4c3 commit 1535f9b

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

stackslib/src/net/api/tests/getblockbyhash.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,10 @@ fn test_try_make_response() {
9393
let mut requests = vec![];
9494

9595
// query existing block
96-
let request =
97-
StacksHttpRequest::new_get_nakamoto_block_by_hash(addr.into(), nakamoto_chain_tip_hash.clone());
96+
let request = StacksHttpRequest::new_get_nakamoto_block_by_hash(
97+
addr.into(),
98+
nakamoto_chain_tip_hash.clone(),
99+
);
98100
requests.push(request);
99101

100102
// query non-existant block
@@ -108,10 +110,7 @@ fn test_try_make_response() {
108110
let response = responses.remove(0);
109111
let resp = response.decode_nakamoto_block().unwrap();
110112

111-
assert_eq!(
112-
resp.header.block_hash(),
113-
nakamoto_chain_tip_hash
114-
);
113+
assert_eq!(resp.header.block_hash(), nakamoto_chain_tip_hash);
115114

116115
assert_eq!(resp.header.consensus_hash, consensus_hash);
117116

stackslib/src/net/api/tests/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ impl<'a> TestRPC<'a> {
824824
32,
825825
);
826826

827-
let tip_height : u64 = 1;
827+
let tip_height: u64 = 1;
828828

829829
TestRPC {
830830
privk1,

0 commit comments

Comments
 (0)