def test_update_below_duration1(self, duration1, duration2):
        global rec

        if duration1==0.0:
            return

        node = CocosNode()
        name1 = '1'
        name2 = '2'
        a1 = UIntervalAction(name1, duration1)
        a2 = UIntervalAction(name2, duration2)
        composite = ac.sequence(a1, a2)
        node.do(composite)
        elapsed = 0.0
        # check cases 1st step and not 1st step
        for next_elapsed in [ duration1*0.5, duration1*0.75]:
            dt = next_elapsed - elapsed
            rec = []
            node._step(dt)
            rec = [ e for e in rec if e[1]!='step' ]
            print(rec)
            assert rec[0][1]=='update' and fe < abs(rec[0][2]-next_elapsed/duration1)
            assert len(rec)==1
            elapsed = next_elapsed
dataset/ETHPy150Open los-cocos/cocos/utest/test_p_ba_Sequence_IntervalAction.py/Test_Sequence_IntervalAction.test_update_below_duration1/swapped operands of `<`