Ensafen luacontroller run time test
This commit is contained in:
parent
133041fa89
commit
92b62cbd89
|
@ -176,7 +176,7 @@ describe("LuaController", function()
|
||||||
it("limits run time", function()
|
it("limits run time", function()
|
||||||
mesecon._test_program_luac(pos, [[
|
mesecon._test_program_luac(pos, [[
|
||||||
port.a = true
|
port.a = true
|
||||||
while true do end
|
for i = 1, 1000000 do end
|
||||||
]])
|
]])
|
||||||
mineunit:execute_globalstep()
|
mineunit:execute_globalstep()
|
||||||
assert.equal("mesecons_luacontroller:luacontroller0000", world.get_node(pos).name)
|
assert.equal("mesecons_luacontroller:luacontroller0000", world.get_node(pos).name)
|
||||||
|
|
Loading…
Reference in New Issue