Skip to content

Commit

Permalink
Add TODO to determine whether strategies can be overriden.
Browse files Browse the repository at this point in the history
  • Loading branch information
derekpierre committed Mar 4, 2024
1 parent 1f1fb28 commit abb8555
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_faults.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ def test_strategy_fault(
w3, machine, clock, eip1559_transaction, account, interval, mock_wake_sleep, mocker
):
faulty_strategy = mocker.Mock(spec=AsyncTxStrategy)

# TODO: consider whether strategies should just be overriden through the constructor
machine._strategies.insert(0, faulty_strategy) # add first

atx, fault_hook = _broadcast_tx(machine, eip1559_transaction, account, mocker)
Expand Down

0 comments on commit abb8555

Please sign in to comment.