Skip to content

Commit e114345

Browse files
committed
Fix test_get_block_availability
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent b74cf10 commit e114345

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

stackslib/src/net/tests/download/epoch2x.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,10 @@ fn test_get_block_availability() {
101101

102102
TestPeer::set_ops_burn_header_hash(&mut burn_ops, &burn_header_hash);
103103

104-
peer_1.next_burnchain_block_raw(burn_ops);
105-
104+
// We do not have the anchor block for peer 1, therefore it cannot advance its tip.
105+
if i < 6 {
106+
peer_1.next_burnchain_block_raw(burn_ops);
107+
}
106108
let sn =
107109
SortitionDB::get_canonical_burn_chain_tip(peer_2.sortdb.as_ref().unwrap().conn())
108110
.unwrap();

0 commit comments

Comments
 (0)