Make proptest bundle size configurable.

This commit is contained in:
Kris Nuttycombe 2021-06-22 10:48:25 -06:00
parent c876f74ab1
commit 1b42ae707b
1 changed files with 2 additions and 4 deletions

View File

@ -566,9 +566,8 @@ pub mod testing {
/// Generate an arbitrary unauthorized bundle. This bundle does not /// Generate an arbitrary unauthorized bundle. This bundle does not
/// necessarily respect consensus rules; for that use /// necessarily respect consensus rules; for that use
/// [`crate::builder::testing::arb_bundle`] /// [`crate::builder::testing::arb_bundle`]
pub fn arb_unauthorized_bundle() pub fn arb_unauthorized_bundle(n_actions: usize)
( (
n_actions in 1usize..100,
flags in arb_flags(), flags in arb_flags(),
) )
( (
@ -592,9 +591,8 @@ pub mod testing {
/// Generate an arbitrary bundle with fake authorization data. This bundle does not /// Generate an arbitrary bundle with fake authorization data. This bundle does not
/// necessarily respect consensus rules; for that use /// necessarily respect consensus rules; for that use
/// [`crate::builder::testing::arb_bundle`] /// [`crate::builder::testing::arb_bundle`]
pub fn arb_bundle() pub fn arb_bundle(n_actions: usize)
( (
n_actions in 1usize..100,
flags in arb_flags(), flags in arb_flags(),
) )
( (