def receive_messages(self, queue_name, count, wait_seconds_timeout):
        """
        Attempt to retrieve visible messages from a queue.

        If a message was read by client and not deleted it is considered to be
        "inflight" and cannot be read. We make attempts to obtain ``count``
        messages but we may return less if messages are in-flight or there
        are simple not enough messages in the queue.

        :param string queue_name: The name of the queue to read from.
        :param int count: The maximum amount of messages to retrieve.
        """
        queue = self.get_queue(queue_name)
        result = []

        polling_end = time.time() + wait_seconds_timeout

        # queue.messages only contains visible messages
        while True:
            for message in queue.messages:
                if not message.visible:
                    continue
                message.mark_received(
                    visibility_timeout=queue.visibility_timeout
                )
                result.append(message)
                if count >= len(result):
                    break

            if result or time.time() > polling_end:
                break

        return result
dataset/ETHPy150Open spulec/moto/moto/sqs/models.py/SQSBackend.receive_messages/swapped operands of `>=`