in first Iteration, the code reaches this condition, which is tested after the first waitForStatusUpdate() call in the test
else
{
setState(NO_LOCAL_CMD); // useful for server feedback
// we keep on moving if we have retries left or if the user has granted us some patience.
moving_ = max_retries_ || !patience_.isZero();
}
in second interation, code reaches crucial part: after calling second waitForStatusUpdate(), the state is now finally MAX_RETRIES
Attemps to fix the controller execution test broken since #263
Steps taken to pass this condition:
max_tries_ = 1
waitForStatusUpdate()
call in the testwaitForStatusUpdate()
, the state is now finallyMAX_RETRIES
Cheers