Skip to content

Commit

Permalink
fix: Fix stack exhaustion test
Browse files Browse the repository at this point in the history
  • Loading branch information
arrudagates committed Mar 18, 2024
1 parent 634af7d commit b9c8bb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions INV4/pallet-inv4/src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1304,7 +1304,7 @@ fn vote_multisig_stack_overflow() {
}
.into();

for _ in 0..300 {
for _ in 0..(sp_api::MAX_EXTRINSIC_DEPTH / 4) + 1 {
nested_call = pallet::Call::operate_multisig {
core_id: 0u32,
metadata: None,
Expand Down Expand Up @@ -1362,7 +1362,7 @@ fn vote_multisig_stack_overflow() {
RawOrigin::Signed(BOB).into(),
0u32,
<<Test as frame_system::Config>::Hashing as Hash>::hash_of(&nested_call),
false
true
),
Error::<Test>::FailedDecodingCall
);
Expand Down

0 comments on commit b9c8bb7

Please sign in to comment.