Reduce slow test runtimes to under 60s (#9012)

Co-Authored-By: Mark Liu <mark@prove.com.au>

Co-Authored-By: Michael Sproul <michaelsproul@users.noreply.github.com>
This commit is contained in:
Mark Liu
2026-04-09 15:36:49 +10:00
committed by GitHub
parent 815aad3731
commit 8681e8e06e
4 changed files with 34 additions and 7 deletions

View File

@@ -3087,6 +3087,9 @@ mod tests {
const MAX_TEST_PEERS: usize = 300;
proptest! {
// 64 cases (down from default 256) keeps this test under 10s while
// still providing good random coverage of the pruning logic.
#![proptest_config(ProptestConfig::with_cases(64))]
#[test]
fn prune_excess_peers(peer_conditions in proptest::collection::vec(peer_condition_strategy(), DEFAULT_TARGET_PEERS..=MAX_TEST_PEERS)) {
let target_peer_count = DEFAULT_TARGET_PEERS;