def testSamePathLengthTenAndDiscard(self):
        nodoc = 1
        """This test pushes a large number of messages into the system and
           does not wait for them to be processed.  If nMessages is
           set too high (> 2500), the ActorExitRequests will not be
           sent and Actors may be leftover.
        """
        nMessages = 2000
        actorDepth = 10

        aS = ActorSystem()
        actors = [aS.createActor(TestActor) for X in range(actorDepth)]
        starttime = datetime.now()
        for X in range(nMessages):  # messages to send
            msg = TestMessage(actors[1:])
            msg.origSender = None
            aS.tell(actors[0], msg)
        endtime = datetime.now()
        elapsed = endtime - starttime
        report('Discarding', self.name, elapsed, nMessages, actorDepth)
        [aS.tell(A, ActorExitRequest()) for A in actors]
dataset/ETHPy150Open godaddy/Thespian/thespian/test/testLoad.py/LoadTester.testSamePathLengthTenAndDiscard/original