Skip to content

Commit

Permalink
GH-985 Cleanup interrupt test
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Nov 11, 2024
1 parent 0b3825d commit af67e0d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/interrupt_trx_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,19 +71,17 @@
trans=prodNode.pushMessage(contract, action, data, opts, silentErrors=True)
assert trans and not trans[0], "push doitforever action did not fail as expected"

prodNode.processUrllibRequest("test_control", "swap_action", {"from": "doitslow", "to": "doitforever"})

action="doitslow"
trans=prodNode.pushMessage(contract, action, data, opts)
assert trans and trans[0], "Failed to push doitslow action"

prodNode.waitForProducer("defproducera")

prodNode.processUrllibRequest("test_control", "swap_action",
{"from":"doitslow", "to":"doitforever",
"trx_priv_key":EOSIO_ACCT_PRIVATE_DEFAULT_KEY,
"blk_priv_key":cluster.defproduceraAccount.activePrivateKey})

action="doitslow"
trans=prodNode.pushMessage(contract, action, data, opts)
assert trans and trans[0], "Failed to push doitslow action"

assert not prodNode.waitForHeadToAdvance(3), f"prodNode did advance head after doitforever action"

prodNode.interruptAndVerifyExitStatus()
Expand Down

0 comments on commit af67e0d

Please sign in to comment.