Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Speed up the block round trip proptest #817

Merged
merged 1 commit into from Aug 5, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions zebra-chain/src/block/tests.rs
Expand Up @@ -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};

Expand Down Expand Up @@ -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))]
teor2345 marked this conversation as resolved.
Show resolved Hide resolved

#[test]
fn block_roundtrip(block in any::<Block>()) {
Expand Down