Skip to content

Commit

Permalink
feat: improve test creating top up motions several times
Browse files Browse the repository at this point in the history
  • Loading branch information
rkolpakov committed Oct 20, 2023
1 parent e5b379c commit 71d2944
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion tests/integration/test_allowed_recipients_motions.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def test_top_up_single_recipient_several_times_in_period(
)

top_up_recipient_addresses = [allowed_recipient.address]
top_up_amounts = [2 * 10 ** 18]
top_up_amounts = [int(allowed_recipients_limit_params.limit / 2)]

test_helpers.advance_chain_time_to_beginning_of_the_next_period(
allowed_recipients_limit_params.duration
Expand All @@ -273,6 +273,23 @@ def test_top_up_single_recipient_several_times_in_period(
sum(top_up_amounts)
)

with reverts("SUM_EXCEEDS_SPENDABLE_BALANCE"):
top_up_allowed_recipient_by_motion(
top_up_allowed_recipients_evm_script_factory,
top_up_recipient_addresses,
[1],
)

test_helpers.advance_chain_time_to_beginning_of_the_next_period(
allowed_recipients_limit_params.duration
)

top_up_allowed_recipient_by_motion(
top_up_allowed_recipients_evm_script_factory,
top_up_recipient_addresses,
[allowed_recipients_limit_params.limit]
)


def test_top_up_multiple_recipients(
recipients,
Expand Down

0 comments on commit 71d2944

Please sign in to comment.