mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 11:07:56 +00:00
Run frame_system integrity tests in Externalities (#13092)
* Run frame_system integrity tests in Externalities Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Use feature = 'std' Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
committed by
GitHub
parent
2bc6078738
commit
d72f6176bc
@@ -360,8 +360,11 @@ pub mod pallet {
|
||||
|
||||
#[pallet::hooks]
|
||||
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {
|
||||
#[cfg(feature = "std")]
|
||||
fn integrity_test() {
|
||||
T::BlockWeights::get().validate().expect("The weights are invalid.");
|
||||
sp_io::TestExternalities::default().execute_with(|| {
|
||||
T::BlockWeights::get().validate().expect("The weights are invalid.");
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user