Skip to content

Commit

Permalink
chore: fix integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
zone117x committed Mar 18, 2024
1 parent 8b49d0f commit 373c082
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion testnet/stacks-node/src/tests/nakamoto_integrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1606,7 +1606,10 @@ fn correct_burn_outs() {

let new_blocks_with_reward_set: Vec<serde_json::Value> = test_observer::get_blocks()
.into_iter()
.filter(|block| block.get("reward_set").is_some() && block.get("cycle_number").is_some())
.filter(|block| {
block.get("reward_set").map_or(false, |v| !v.is_null())
&& block.get("cycle_number").map_or(false, |v| !v.is_null())
})
.collect();
info!(
"Announced blocks that include reward sets: {:#?}",
Expand Down

0 comments on commit 373c082

Please sign in to comment.