Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bugrazoid committed Mar 6, 2023
1 parent 72d424b commit 71315fb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions bin/node/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ impl pallet_scheduler::Config for Runtime {
type WeightInfo = pallet_scheduler::weights::SubstrateWeight<Runtime>;
type OriginPrivilegeCmp = EqualPrivilegeOnly;
type Preimages = Preimage;
type CallFilter = Everything;
}

impl pallet_glutton::Config for Runtime {
Expand Down
3 changes: 2 additions & 1 deletion frame/democracy/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use crate as pallet_democracy;
use frame_support::{
assert_noop, assert_ok, ord_parameter_types, parameter_types,
traits::{
ConstU32, ConstU64, Contains, EqualPrivilegeOnly, GenesisBuild, OnInitialize,
ConstU32, ConstU64, Contains, EqualPrivilegeOnly, Everything, GenesisBuild, OnInitialize,
SortedMembers, StorePreimage,
},
weights::Weight,
Expand Down Expand Up @@ -132,6 +132,7 @@ impl pallet_scheduler::Config for Test {
type WeightInfo = ();
type OriginPrivilegeCmp = EqualPrivilegeOnly;
type Preimages = ();
type CallFilter = Everything;
}

impl pallet_balances::Config for Test {
Expand Down
5 changes: 3 additions & 2 deletions frame/referenda/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ use codec::{Decode, Encode, MaxEncodedLen};
use frame_support::{
assert_ok, ord_parameter_types, parameter_types,
traits::{
ConstU32, ConstU64, Contains, EqualPrivilegeOnly, OnInitialize, OriginTrait, Polling,
SortedMembers,
ConstU32, ConstU64, Contains, EqualPrivilegeOnly, Everything, OnInitialize, OriginTrait,
Polling, SortedMembers,
},
weights::Weight,
};
Expand Down Expand Up @@ -109,6 +109,7 @@ impl pallet_scheduler::Config for Test {
type WeightInfo = ();
type OriginPrivilegeCmp = EqualPrivilegeOnly;
type Preimages = Preimage;
type CallFilter = Everything;
}
impl pallet_balances::Config for Test {
type MaxReserves = ();
Expand Down
2 changes: 1 addition & 1 deletion frame/scheduler/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ fn fails_to_schedule_filtered_task() {
frame_system::Error::<Test>::CallFiltered
);
assert_err!(
Scheduler::schedule_after(RuntimeOrigin::root(), 4, None, 127, call,),
Scheduler::schedule_after(RuntimeOrigin::root(), 4, None, 127, call.clone(),),
frame_system::Error::<Test>::CallFiltered
);
assert_err!(
Expand Down

0 comments on commit 71315fb

Please sign in to comment.