fix: Speed up the block round trip proptest

Reduce the number of cases run by the block round trip proptest, to
speed up the Zebra tests.
This commit is contained in:
teor 2020-08-04 14:31:38 +10:00 committed by Henry de Valence
parent 70597c1da3
commit ac7a4ae517
1 changed files with 6 additions and 0 deletions

View File

@ -13,6 +13,7 @@ use chrono::{DateTime, Duration, LocalResult, TimeZone, Utc};
use proptest::{
arbitrary::{any, Arbitrary},
prelude::*,
test_runner::Config,
};
use std::io::{Cursor, ErrorKind, Write};
@ -210,6 +211,11 @@ proptest! {
prop_assert_eq![header, other_header];
}
}
proptest! {
// The block roundtrip test can be really slow
#![proptest_config(Config::with_cases(16))]
#[test]
fn block_roundtrip(block in any::<Block>()) {