Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_runner: dont use cleanupImmediately #4278

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

keelefi
Copy link
Contributor

@keelefi keelefi commented Feb 4, 2025

Don't use cleanupImmediately when calling DestroyUnit().

If a test ends with a transport carrying a unit, using cleanupImmediately will cause errors in gadget
unit_transport_dies_load_dies like follows:

Error: [LuaRules::RunCallInTraceback] error=2 (LUA_ERRRUN) callin=GameFrame trace=[Internal Lua error: Call failure] [string "LuaRules/Gadgets/unit_transport_dies_load_dies.lua"]:79: attempt to index a nil value stack traceback:
[string "LuaRules/Gadgets/unit_transport_dies_load_dies.lua"]:79: in function 'GameFrame'
[string "LuaRules/gadgets.lua"]:1160: in function 'selffunc'
[string "LuaRules/gadgets.lua"]:826: in function <[string "LuaRules/gadgets.lua"]:823>

Don't use cleanupImmediately when calling DestroyUnit().

If a test ends with a transport carrying a unit, using
cleanupImmediately will cause errors in gadget
unit_transport_dies_load_dies like follows:

Error: [LuaRules::RunCallInTraceback] error=2 (LUA_ERRRUN) callin=GameFrame trace=[Internal Lua error: Call failure] [string "LuaRules/Gadgets/unit_transport_dies_load_dies.lua"]:79: attempt to index a nil value
stack traceback:
    [string "LuaRules/Gadgets/unit_transport_dies_load_dies.lua"]:79: in function 'GameFrame'
    [string "LuaRules/gadgets.lua"]:1160: in function 'selffunc'
    [string "LuaRules/gadgets.lua"]:826: in function <[string "LuaRules/gadgets.lua"]:823>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants