Skip to content

Commit

Permalink
chore: fix failing unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jcnelson committed Dec 19, 2023
1 parent a10ce07 commit 630fed8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion stackslib/src/net/stackerdb/tests/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ fn test_valid_and_invalid_stackerdb_configs() {
(define-public (stackerdb-get-config)
(ok {
chunk-size: u1048577,
chunk-size: (+ (* u16 u1048576) u1),
write-freq: u4,
max-writes: u56,
max-neighbors: u7,
Expand Down
10 changes: 5 additions & 5 deletions stackslib/src/net/stackerdb/tests/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ fn test_stackerdb_replica_2_neighbors_1_chunk() {
let mut i = 0;
loop {
// run peer network state-machines
let res_1 = peer_1.step();
let res_2 = peer_2.step();
let res_1 = peer_1.step_with_ibd(false);
let res_2 = peer_2.step_with_ibd(false);

if let Ok(mut res) = res_1 {
Relayer::process_stacker_db_chunks(
Expand Down Expand Up @@ -347,8 +347,8 @@ fn inner_test_stackerdb_replica_2_neighbors_10_chunks(push_only: bool, base_port
let mut i = 0;
loop {
// run peer network state-machines
let res_1 = peer_1.step();
let res_2 = peer_2.step();
let res_1 = peer_1.step_with_ibd(false);
let res_2 = peer_2.step_with_ibd(false);

if let Ok(mut res) = res_1 {
Relayer::process_stacker_db_chunks(
Expand Down Expand Up @@ -485,7 +485,7 @@ fn inner_test_stackerdb_10_replicas_10_neighbors_line_10_chunks(push_only: bool,
loop {
// run peer network state-machines
for i in 0..num_peers {
let res = peers[i].step();
let res = peers[i].step_with_ibd(false);
if let Ok(mut res) = res {
let rc_consensus_hash =
peers[i].network.get_chain_view().rc_consensus_hash.clone();
Expand Down

0 comments on commit 630fed8

Please sign in to comment.