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:
parent
70597c1da3
commit
ac7a4ae517
|
@ -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>()) {
|
||||
|
|
Loading…
Reference in New Issue