Skip to content
Snippets Groups Projects
Commit edb68138 authored by Hugo Trentesaux's avatar Hugo Trentesaux
Browse files

complete the test with refund check

parent d139d8c8
No related branches found
No related tags found
No related merge requests found
Pipeline #36408 passed
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
mod common; mod common;
use common::*; use common::*;
use frame_support::traits::OnIdle;
use frame_support::traits::StoredMap; use frame_support::traits::StoredMap;
use frame_support::{assert_noop, assert_ok}; use frame_support::{assert_noop, assert_ok};
use gdev_runtime::*; use gdev_runtime::*;
...@@ -153,11 +154,18 @@ fn test_transfer_all_linked_no_member() { ...@@ -153,11 +154,18 @@ fn test_transfer_all_linked_no_member() {
frame_system::RawOrigin::Signed(ferdie.clone()).into(), frame_system::RawOrigin::Signed(ferdie.clone()).into(),
AccountKeyring::Bob.to_account_id().into(), AccountKeyring::Bob.to_account_id().into(),
false false
),); ));
assert_eq!(Balances::free_balance(ferdie.clone()), 0); assert_eq!(Balances::free_balance(ferdie.clone()), 0);
// During reaping the account is unlinked // During reaping the account is unlinked
assert!(frame_system::Pallet::<Runtime>::get(&ferdie) assert!(frame_system::Pallet::<Runtime>::get(&ferdie)
.linked_idty .linked_idty
.is_none()); .is_none());
// call on_idle to activate refund system
Quota::on_idle(System::block_number(), Weight::from(1_000_000_000));
// check that one block later the account is still empty
run_to_block(2);
assert_eq!(Balances::free_balance(ferdie.clone()), 0);
}) })
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment