Skip to content

Commit

Permalink
Add tests for insufficient funds scenario (eth-tester and other (Amoy)).
Browse files Browse the repository at this point in the history
Update tests to specify mandatory on_insufficient_funds callback when queueing transactions.
  • Loading branch information
derekpierre committed Apr 5, 2024
1 parent 0d17a2f commit 95b113a
Show file tree
Hide file tree
Showing 4 changed files with 327 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def test_machine(
on_broadcast_failure=mocker.Mock(),
on_fault=mocker.Mock(),
on_finalized=mocker.Mock(),
on_insufficient_funds=mocker.Mock(),
)

assert len(async_txs) == 2
Expand Down
1 change: 1 addition & 0 deletions tests/test_faults.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def _broadcast_tx(machine, eip1559_transaction, account, mocker):
on_broadcast_failure=mocker.Mock(),
on_fault=fault_hook,
on_finalized=mocker.Mock(),
on_insufficient_funds=mocker.Mock(),
)

# broadcast tx
Expand Down
Loading

0 comments on commit 95b113a

Please sign in to comment.