AngryAnt/Behave-release — Issue #23: Init decorator called every tick instead of just once
Author: ricardojmendez
Created: 2011-10-16 15:54:50+00:00
State: open

I have a "Wait" decorator which receives a float parameter of how long to wait while executing its child. I expected I could initialize the "Wait until time" on the decorator's init, but it is being called every tick instead of just once. I end up with:

InitWaitDecorator with 4 at 2.120646
TickWaitDecorator until 6.120646 now 2.120646 returning Running
InitWaitDecorator with 4 at 2.226122
TickWaitDecorator until 6.226122 now 2.226122 returning Running
InitWaitDecorator with 4 at 2.328562
TickWaitDecorator until 6.328562 now 2.328562 returning Running

And so on. I expect this is a bug, since there is no need to initialize the decorator more than once.