Skip to content

Commit

Permalink
Increase the determinism in test vector generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
murisi committed Aug 12, 2024
1 parent 77ed56e commit 0b30c2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/tx/src/data/pgf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pub mod tests {
/// Generate an arbitraary steward commission update
pub fn arb_update_steward_commission()(
steward in arb_non_internal_address(),
commission in collection::hash_map(arb_non_internal_address(), arb_dec(), 0..10),
commission in collection::btree_map(arb_non_internal_address(), arb_dec(), 0..10),
) -> UpdateStewardCommission {
UpdateStewardCommission {
steward,
Expand Down
2 changes: 1 addition & 1 deletion examples/generate_txs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use proptest::test_runner::{Reason, TestRunner};

#[tokio::main]
async fn main() -> Result<(), Reason> {
let mut runner = TestRunner::default();
let mut runner = TestRunner::deterministic();
let wallet = FsWalletUtils::new(PathBuf::from("wallet.toml"));
let mut debug_vectors = vec![];
let mut test_vectors = vec![];
Expand Down

0 comments on commit 0b30c2e

Please sign in to comment.