Skip to content

Commit

Permalink
remove unused assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
realbigsean committed Apr 9, 2024
1 parent f39268c commit 5714e8e
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions beacon_node/network/src/sync/block_lookups/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -857,16 +857,6 @@ fn test_parent_lookup_too_many_attempts() {
rig.parent_lookup_block_response(id, peer_id, None);
rig.expect_penalty(peer_id);
}
if i < parent_lookup::PARENT_FAIL_TOLERANCE {
// assert_eq!(
// bl.parent_lookups[0]
// .current_parent_request
// .block_request_state
// .state
// .failed_attempts(),
// dbg!(i)
// );
}
}

assert_eq!(rig.active_parent_lookups_count(), 0);
Expand Down Expand Up @@ -897,16 +887,6 @@ fn test_parent_lookup_too_many_download_attempts_no_blacklist() {
rig.parent_lookup_block_response(id, peer_id, Some(bad_block.into()));
rig.expect_penalty(peer_id);
}
if i < parent_lookup::PARENT_FAIL_TOLERANCE {
// assert_eq!(
// bl.parent_lookups[0]
// .current_parent_request
// .block_request_state
// .state
// .failed_attempts(),
// dbg!(i)
// );
}
}

assert_eq!(rig.active_parent_lookups_count(), 0);
Expand Down

0 comments on commit 5714e8e

Please sign in to comment.