1
0
forked from 0ad/0ad

Fix tests following 945d1ba2e6

945d1ba2e6 broke formation regression tests because there now needs to
be a timer call after the units become idle for behaviour to trigger.

Differential Revision: https://code.wildfiregames.com/D2077
This was SVN commit r22477.
This commit is contained in:
wraitii 2019-07-14 14:57:38 +00:00
parent 4f62cc3ee7
commit e1bde4c337

View File

@ -161,6 +161,8 @@ function TestFormationExiting(mode)
controllerFormation.Disband();
unitAI.UnitFsm.ProcessMessage(unitAI, { "type": "Timer" });
if (mode == 0)
TS_ASSERT_EQUALS(unitAI.fsmStateName, "INDIVIDUAL.IDLE");
else if (mode == 1)