Skip to content

Commit

Permalink
Added rbac's assign role worst case to afloat's sign up benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreyhh committed Apr 4, 2024
1 parent 9667bcc commit 7f9cf81
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pallets/afloat/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ mod benchmarks {
let user: T::AccountId = account("user", 0, SEED);

init::<T>().unwrap();
set_rbac_assign_role_to_user_worst_case::<T>(user.clone(), 1, false).unwrap();

#[extrinsic_call]
_(RawOrigin::Signed(user.clone()), sign_up_args);
Expand Down Expand Up @@ -436,6 +437,7 @@ mod benchmarks {
let parent_info = create_sized_parent_info::<T>(0, 0, MAX_U32, true);
assert_eq!(attributes.len() as u32, a);
set_up_fruniques_do_spawn_worst_case::<T>(user.clone()).unwrap();

#[extrinsic_call]
_(RawOrigin::Signed(user.clone()), description, Some(attributes), Some(parent_info));
}
Expand Down

0 comments on commit 7f9cf81

Please sign in to comment.