Skip to content

Commit

Permalink
Increase retry count and delay for peer hash verification test
Browse files Browse the repository at this point in the history
  • Loading branch information
tripledoublev committed Dec 9, 2024
1 parent 7693584 commit 79bd03a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@ mod tests {
);

// Retry checking if peers have the hash
let mut retries = 2;
let mut retries = 4;
let mut peers_have = false;
while retries > 0 {
peers_have = joined_group
Expand All @@ -992,7 +992,7 @@ mod tests {
break;
}
retries -= 1;
sleep(Duration::from_secs(2)).await;
sleep(Duration::from_secs(4)).await;
}

assert!(peers_have, "Peers should have the uploaded hash");
Expand Down

0 comments on commit 79bd03a

Please sign in to comment.