mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 12:51:02 +00:00
Companion for substrate#10620 (#4696)
* fix tests * update lockfile for substrate Co-authored-by: parity-processbot <>
This commit is contained in:
Generated
+165
-165
File diff suppressed because it is too large
Load Diff
@@ -400,11 +400,11 @@ impl<T: paras_inherent::Config> BenchBuilder<T> {
|
||||
let block_number = <T as frame_system::Config>::BlockNumber::from(block);
|
||||
let header = Self::header(block_number.clone());
|
||||
|
||||
frame_system::Pallet::<T>::reset_events();
|
||||
frame_system::Pallet::<T>::initialize(
|
||||
&header.number(),
|
||||
&header.hash(),
|
||||
&Digest { logs: Vec::new() },
|
||||
Default::default(),
|
||||
);
|
||||
|
||||
assert_eq!(<shared::Pallet<T>>::session_index(), target_session);
|
||||
|
||||
@@ -1237,7 +1237,6 @@ mod tests {
|
||||
assert_err, assert_noop, assert_ok, assert_storage_noop,
|
||||
traits::{OnFinalize, OnInitialize},
|
||||
};
|
||||
use frame_system::InitKind;
|
||||
use primitives::v1::BlockNumber;
|
||||
use sp_core::{crypto::CryptoType, Pair};
|
||||
|
||||
@@ -1265,7 +1264,8 @@ mod tests {
|
||||
System::finalize();
|
||||
}
|
||||
|
||||
System::initialize(&(b + 1), &Default::default(), &Default::default(), InitKind::Full);
|
||||
System::reset_events();
|
||||
System::initialize(&(b + 1), &Default::default(), &Default::default());
|
||||
AllPalletsWithSystem::on_initialize(b + 1);
|
||||
|
||||
if let Some(new_session) = new_session(b + 1) {
|
||||
|
||||
Reference in New Issue
Block a user