Skip to content
Snippets Groups Projects
Commit ca8b63cc authored by Manuel Mauro's avatar Manuel Mauro
Browse files

test: :sparkles: add balance assertion for insecure_zero_ed case

parent 260d204a
Branches
No related merge requests found
......@@ -68,6 +68,9 @@ mod benchmarks {
#[cfg(not(feature = "insecure_zero_ed"))]
assert_eq!(Balances::<T, I>::free_balance(&caller), Zero::zero());
#[cfg(feature = "insecure_zero_ed")]
assert_eq!(Balances::<T, I>::free_balance(&caller), balance - transfer_amount);
assert_eq!(Balances::<T, I>::free_balance(&recipient), transfer_amount);
}
......@@ -178,6 +181,9 @@ mod benchmarks {
#[cfg(not(feature = "insecure_zero_ed"))]
assert_eq!(Balances::<T, I>::free_balance(&source), Zero::zero());
#[cfg(feature = "insecure_zero_ed")]
assert_eq!(Balances::<T, I>::free_balance(&source), balance - transfer_amount);
assert_eq!(Balances::<T, I>::free_balance(&recipient), transfer_amount);
}
......@@ -215,6 +221,9 @@ mod benchmarks {
#[cfg(not(feature = "insecure_zero_ed"))]
assert_eq!(Balances::<T, I>::free_balance(&caller), Zero::zero());
#[cfg(feature = "insecure_zero_ed")]
assert_eq!(Balances::<T, I>::free_balance(&caller), balance - transfer_amount);
assert_eq!(Balances::<T, I>::free_balance(&recipient), transfer_amount);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment