Skip to content

Commit

Permalink
Merge pull request #1764 from mintlayer/fix/statistics-tests
Browse files Browse the repository at this point in the history
fix empty rng range in tests
  • Loading branch information
TheQuantumPhysicist authored May 29, 2024
2 parents a548eeb + 7c043a3 commit 89baf23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api-server/stack-test-suite/tests/v2/statistics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,9 @@ async fn ok_coins(#[case] seed: Seed) {
available_amount = (available_amount - delegated_amount).unwrap();

let amount_to_unstake =
Amount::from_atoms(rng.gen_range(1..delegated_amount.into_atoms()));
Amount::from_atoms(rng.gen_range(1..=delegated_amount.into_atoms()));
let amount_to_burn =
Amount::from_atoms(rng.gen_range(1..available_amount.into_atoms()));
Amount::from_atoms(rng.gen_range(1..=available_amount.into_atoms()));

let undelegate_and_burn = TransactionBuilder::new()
.add_input(transfer_outpoint.into(), InputWitness::NoSignature(None))
Expand Down

0 comments on commit 89baf23

Please sign in to comment.