Skip to content

Commit 2f34831

Browse files
jcnelsonjferrant
authored andcommitted
chore: fix failing unit tests
1 parent 80f2a26 commit 2f34831

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

stackslib/src/net/stackerdb/tests/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ fn test_valid_and_invalid_stackerdb_configs() {
316316
317317
(define-public (stackerdb-get-config)
318318
(ok {
319-
chunk-size: u1048577,
319+
chunk-size: (+ (* u16 u1048576) u1),
320320
write-freq: u4,
321321
max-writes: u56,
322322
max-neighbors: u7,

stackslib/src/net/stackerdb/tests/sync.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ fn test_stackerdb_replica_2_neighbors_1_chunk() {
228228
let mut i = 0;
229229
loop {
230230
// run peer network state-machines
231-
let res_1 = peer_1.step();
232-
let res_2 = peer_2.step();
231+
let res_1 = peer_1.step_with_ibd(false);
232+
let res_2 = peer_2.step_with_ibd(false);
233233

234234
if let Ok(mut res) = res_1 {
235235
Relayer::process_stacker_db_chunks(
@@ -347,8 +347,8 @@ fn inner_test_stackerdb_replica_2_neighbors_10_chunks(push_only: bool, base_port
347347
let mut i = 0;
348348
loop {
349349
// run peer network state-machines
350-
let res_1 = peer_1.step();
351-
let res_2 = peer_2.step();
350+
let res_1 = peer_1.step_with_ibd(false);
351+
let res_2 = peer_2.step_with_ibd(false);
352352

353353
if let Ok(mut res) = res_1 {
354354
Relayer::process_stacker_db_chunks(
@@ -485,7 +485,7 @@ fn inner_test_stackerdb_10_replicas_10_neighbors_line_10_chunks(push_only: bool,
485485
loop {
486486
// run peer network state-machines
487487
for i in 0..num_peers {
488-
let res = peers[i].step();
488+
let res = peers[i].step_with_ibd(false);
489489
if let Ok(mut res) = res {
490490
let rc_consensus_hash =
491491
peers[i].network.get_chain_view().rc_consensus_hash.clone();

0 commit comments

Comments
 (0)