def advance_time_and_run(self, delta):
        end_time = time.time() + delta
        self.machine_run()
        while True:
            next_event = self.machine.delay.get_next_event()
            next_timer = self.machine.timing.get_next_timer()

            wait_until = next_event
            if wait_until and next_timer and wait_until > next_timer:
                wait_until = next_timer

            if wait_until and end_time <= wait_until:
                self.set_time(wait_until)
                self.machine_run()
            else:
                break

        self.set_time(end_time)
        self.machine_run()
dataset/ETHPy150Open missionpinball/mpf/tests/MpfTestCase.py/MpfTestCase.advance_time_and_run/swapped operands of `<=`