mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 18:31:05 +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]
|
#[pallet::hooks]
|
||||||
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {
|
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {
|
||||||
|
#[cfg(feature = "std")]
|
||||||
fn integrity_test() {
|
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