Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Ank4n committed Mar 31, 2024
1 parent 6ba6ee1 commit cebea1a
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions substrate/frame/delegated-staking/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -988,10 +988,7 @@ mod pool_integration {
Event::Released { agent: pool_acc, delegator: i, amount: 50 },
]
);
assert_eq!(
get_pool_agent(pool_id).ledger.pending_slash,
pre_pending_slash - 50
);
assert_eq!(get_pool_agent(pool_id).ledger.pending_slash, pre_pending_slash - 50);
assert_eq!(held_balance(&i), 0);
assert_eq!(Balances::free_balance(i) - pre_balance, 50);
}
Expand All @@ -1006,10 +1003,7 @@ mod pool_integration {
assert_ok!(Pools::apply_slash(RawOrigin::Signed(slash_reporter).into(), i));

// each member is slashed 50% of 100 = 50.
assert_eq!(
get_pool_agent(pool_id).ledger.pending_slash,
pre_pending_slash - 50
);
assert_eq!(get_pool_agent(pool_id).ledger.pending_slash, pre_pending_slash - 50);
// left with 50.
assert_eq!(held_balance(&i), 50);
}
Expand Down

0 comments on commit cebea1a

Please sign in to comment.