From 7f9cf81b6526cc697e22261ab71693c34e70cd2b Mon Sep 17 00:00:00 2001 From: Dreyhh Date: Thu, 4 Apr 2024 10:26:46 -0600 Subject: [PATCH] Added rbac's assign role worst case to afloat's sign up benchmark --- pallets/afloat/src/benchmarking.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pallets/afloat/src/benchmarking.rs b/pallets/afloat/src/benchmarking.rs index d7730f0..6c2f254 100644 --- a/pallets/afloat/src/benchmarking.rs +++ b/pallets/afloat/src/benchmarking.rs @@ -388,6 +388,7 @@ mod benchmarks { let user: T::AccountId = account("user", 0, SEED); init::().unwrap(); + set_rbac_assign_role_to_user_worst_case::(user.clone(), 1, false).unwrap(); #[extrinsic_call] _(RawOrigin::Signed(user.clone()), sign_up_args); @@ -436,6 +437,7 @@ mod benchmarks { let parent_info = create_sized_parent_info::(0, 0, MAX_U32, true); assert_eq!(attributes.len() as u32, a); set_up_fruniques_do_spawn_worst_case::(user.clone()).unwrap(); + #[extrinsic_call] _(RawOrigin::Signed(user.clone()), description, Some(attributes), Some(parent_info)); }