Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ank4n committed May 17, 2024
1 parent d2ee1e9 commit 1634110
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions substrate/frame/nomination-pools/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4634,15 +4634,15 @@ mod withdraw_unbonded {
// pool is destroyed.
assert!(!Metadata::<T>::contains_key(1));
// ensure the pool account is reaped.
assert!(!frame_system::Account::<T>::contains_key(&Pools::create_bonded_account(1)));
assert!(!frame_system::Account::<T>::contains_key(&Pools::generate_bonded_account(1)));
})
}

#[test]
fn destroy_works_with_erroneous_extra_consumer() {
ExtBuilder::default().ed(1).build_and_execute(|| {
// 10 is the depositor for pool 1, with min join bond 10.
let pool_one = Pools::create_bonded_account(1);
let pool_one = Pools::generate_bonded_account(1);

// set pool to destroying.
unsafe_set_state(1, PoolState::Destroying);
Expand Down

0 comments on commit 1634110

Please sign in to comment.