diff --git a/tests/lua/cartesi-machine-tests.lua b/tests/lua/cartesi-machine-tests.lua index f5e281b83..1651414fd 100755 --- a/tests/lua/cartesi-machine-tests.lua +++ b/tests/lua/cartesi-machine-tests.lua @@ -401,7 +401,6 @@ local periodic_action = false local periodic_action_period = math.maxinteger local periodic_action_start = 0 local concurrency_update_merkle_tree = util.parse_number(os.getenv("CARTESI_CONCURRENCY_UPDATE_MERKLE_TREE")) or 0 -local cleanup = {} -- List of supported options -- Options are processed in order @@ -604,10 +603,10 @@ local function run_machine_with_uarch(machine, ctx, max_mcycle) end local function connect() - local remote = protocol.connect(remote_address) -- server will be shutdown when remote is collected + local stub = protocol.connect(remote_address) -- server will be shutdown when remote is collected local version = - assert(remote.get_server_version(), "could not connect to remote cartesi machine at " .. remote_address) - return remote, version + assert(stub.get_server_version(), "could not connect to remote cartesi machine at " .. remote_address) + return stub, version end local function build_machine(ram_image) diff --git a/tests/lua/cmio-test.lua b/tests/lua/cmio-test.lua index 673673409..f95ed9fdc 100755 --- a/tests/lua/cmio-test.lua +++ b/tests/lua/cmio-test.lua @@ -26,7 +26,6 @@ end local MACHINES_DIR = adjust_images_path(test_util.cmio_path) local remote_address -local cleanup = {} -- Print help and exit local function help() diff --git a/tests/lua/machine-bind.lua b/tests/lua/machine-bind.lua index ae4fa585a..d0430ed0b 100755 --- a/tests/lua/machine-bind.lua +++ b/tests/lua/machine-bind.lua @@ -22,10 +22,9 @@ local test_util = require("cartesi.tests.util") local remote_address local test_path = "./" -local cleanup = {} local concurrency_update_merkle_tree = util.parse_number(os.getenv("CARTESI_CONCURRENCY_UPDATE_MERKLE_TREE")) or 0 -local lua_cmd = arg[-1] .. " -e " +-- local lua_cmd = arg[-1] .. " -e " -- There is no UINT64_MAX in Lua, so we have to use the signed representation local MAX_MCYCLE = -1 diff --git a/tests/lua/machine-test.lua b/tests/lua/machine-test.lua index fa14e4ba1..4cec9a2e2 100755 --- a/tests/lua/machine-test.lua +++ b/tests/lua/machine-test.lua @@ -28,7 +28,6 @@ local MAX_MCYCLE = -1 local remote_address local test_path = "/tmp/" -local cleanup = {} -- Print help and exit local function help()