mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-28 02:03:32 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user