This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
pallet-staking: properly call into try_state
in tests
#12199
Labels
I5-tests
Tests need fixing, improving or augmenting.
... instead of manually re-implementing some of the checks in
mock.rs
substrate/frame/staking/src/mock.rs
Lines 550 to 555 in 20b5aac
kinda related to #12130.
Ideally, in all pallets, we should call in that pallet's try-state at the end of each tests, but I am not sure if and how there is a way to enforce that, other than doing it manually, as we are doing for staking here.
The text was updated successfully, but these errors were encountered: