From 1abd5e5cac2f630557d44e1cbb68fde7ef81aa64 Mon Sep 17 00:00:00 2001 From: Puneet Saraswat Date: Wed, 20 Nov 2024 19:00:43 -0600 Subject: [PATCH] fix first test --- pallets/capacity/src/tests/stake_and_deposit_tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pallets/capacity/src/tests/stake_and_deposit_tests.rs b/pallets/capacity/src/tests/stake_and_deposit_tests.rs index 9ae495a08f..c2e9462706 100644 --- a/pallets/capacity/src/tests/stake_and_deposit_tests.rs +++ b/pallets/capacity/src/tests/stake_and_deposit_tests.rs @@ -272,10 +272,10 @@ fn stake_when_staking_amount_is_greater_than_free_balance_it_stakes_maximum() { fn get_stakable_amount_for_works() { new_test_ext().execute_with(|| { let account = 200; - // An amount greater than the free balance + // An amount greater than the free balance should not be stakable let amount = 230; let res: u64 = Capacity::get_stakable_amount_for(&account, amount); - assert_eq!(res, 189); + assert_eq!(res, 0); }) }