Ensafen luacontroller run time test

This commit is contained in:
Jude Melton-Houghton 2022-06-01 14:55:21 -04:00
parent 133041fa89
commit 92b62cbd89
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ describe("LuaController", function()
it("limits run time", function()
mesecon._test_program_luac(pos, [[
port.a = true
while true do end
for i = 1, 1000000 do end
]])
mineunit:execute_globalstep()
assert.equal("mesecons_luacontroller:luacontroller0000", world.get_node(pos).name)