Skip to content

Commit 85ba3c8

Browse files
TriplEightshawntabrizigavofyork
authored
Fix runtime benchmarks CI (#6545)
* debug (ci): ci config [skip ci] * debug (ci): fix runtime benchmarks * fix identity benchmarks * fix utility benchmarks * Revert "debug (ci): ci config [skip ci]" This reverts commit 081b175b5e95604520c79ea4e5822b84ea35ddaa. * change (ci): touch ci config to run CI Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com> Co-authored-by: Gav Wood <gavin@parity.io>
1 parent 2558f99 commit 85ba3c8

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

src/lib.rs

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,7 +1151,7 @@ mod tests {
11511151
ord_parameter_types,
11521152
};
11531153
use sp_core::H256;
1154-
use frame_system::EnsureSignedBy;
1154+
use frame_system::{EnsureSignedBy, EnsureOneOf, EnsureRoot};
11551155
// The testing primitives are very useful for avoiding having to work with signatures
11561156
// or public keys. `u64` is used as the `AccountId` and no `Signature`s are required.
11571157
use sp_runtime::{
@@ -1221,6 +1221,16 @@ mod tests {
12211221
pub const One: u64 = 1;
12221222
pub const Two: u64 = 2;
12231223
}
1224+
type EnsureOneOrRoot = EnsureOneOf<
1225+
u64,
1226+
EnsureRoot<u64>,
1227+
EnsureSignedBy<One, u64>
1228+
>;
1229+
type EnsureTwoOrRoot = EnsureOneOf<
1230+
u64,
1231+
EnsureRoot<u64>,
1232+
EnsureSignedBy<Two, u64>
1233+
>;
12241234
impl Trait for Test {
12251235
type Event = ();
12261236
type Currency = Balances;
@@ -1231,8 +1241,8 @@ mod tests {
12311241
type MaxSubAccounts = MaxSubAccounts;
12321242
type MaxAdditionalFields = MaxAdditionalFields;
12331243
type MaxRegistrars = MaxRegistrars;
1234-
type RegistrarOrigin = EnsureSignedBy<One, u64>;
1235-
type ForceOrigin = EnsureSignedBy<Two, u64>;
1244+
type RegistrarOrigin = EnsureOneOrRoot;
1245+
type ForceOrigin = EnsureTwoOrRoot;
12361246
}
12371247
type System = frame_system::Module<Test>;
12381248
type Balances = pallet_balances::Module<Test>;

0 commit comments

Comments
 (0)