Skip to content

Commit

Permalink
fix: remove invalid test case
Browse files Browse the repository at this point in the history
The machine itself does not take any steps to restore its state, the
the emulator driver / controller does. As such we cannot expect the
machine to reset its own state and thus this test case makes no sense.
  • Loading branch information
mpolitzer committed Jul 29, 2024
1 parent e4d5ee6 commit 839d789
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions tests/lua/cmio-test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -319,26 +319,6 @@ for _, dapp in pairs({ "ioctl", "http" }) do
return 0
end, 0)

do_test(
"merkle tree is pristine when input is rejected" .. desc,
"advance-rejecting-machine" .. suffix,
function(machine)
local hashes = {}
setup_advance(machine, test_data.valid_advance)

-- 1 reports
machine:run(MAX_MCYCLE)
check_report(machine, test_data.valid_advance_report_reply)

-- finish
machine:run(MAX_MCYCLE)
check_finish(machine, hashes, cartesi.machine.HTIF_YIELD_MANUAL_REASON_RX_REJECTED)

return 0
end,
0
)

do_test("the other case" .. desc, "inspect-rejecting-machine" .. suffix, function(machine)
local hashes = {}
setup_inspect(machine, test_data.valid_inspect)
Expand Down

0 comments on commit 839d789

Please sign in to comment.